'app-frontend', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'controllerNamespace' => 'member\controllers', 'modules' => [ 'v1' => [ 'class' => 'member\modules\v1\Module', ], 'doc'=>[ 'class' => 'cfd\doc\Module', 'modelsMap'=>[ '\common\models\\', '\common\modelsgii\\', ] ], ], 'components' => [ 'request' => [ 'csrfParam' => '_csrf-frontend', ], 'response' => [ 'class' => 'yii\web\Response', 'format' => \yii\web\Response::FORMAT_JSON, 'formatters' => [ \yii\web\Response::FORMAT_JSON => [ 'class' => 'common\foundation\JsonResponseFormatter', 'prettyPrint' => YII_DEBUG, // use "pretty" output in debug mode 'encodeOptions' => JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE, ], ], ], 'user' => [ 'identityClass' => 'member\models\User', 'enableAutoLogin' => true, 'enableSession'=>false, // 'identityCookie' => ['name' => '_identity-app', 'httpOnly' => true], ], // 'log' => [ // 'traceLevel' => YII_DEBUG ? 3 : 0, // 'targets' => [ // [ // 'class' => \yii\log\FileTarget::class, // 'levels' => ['error', 'warning'], // ], // ], // ], // 'errorHandler' => [ // 'errorAction' => 'site/error', // ], 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ ], ], ], 'params' => $params, ];