'accounts-site-api', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'controllerNamespace' => 'api\controllers', 'components' => [ 'user' => [ 'identityClass' => 'common\models\Account', 'enableAutoLogin' => true, ], 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'levels' => ['error', 'warning'], ], ], ], 'errorHandler' => [ 'errorAction' => 'site/error', ], 'request' => [ 'baseUrl' => '/api', ], 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => require __DIR__ . '/routes.php', ], 'reCaptcha' => [ 'class' => 'api\components\ReCaptcha\Component', ], 'response' => [ 'format' => \yii\web\Response::FORMAT_JSON, ], ], 'params' => $params, ];