Удалён никому ненужный SiteController

This commit is contained in:
ErickSkrauch
2016-05-31 21:11:11 +03:00
parent c3e7e99baa
commit 67fa28aaa1
2 changed files with 2 additions and 195 deletions

View File

@@ -11,6 +11,7 @@ return [
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'controllerNamespace' => 'api\controllers',
'params' => $params,
'components' => [
'user' => [
'identityClass' => \api\models\AccountIdentity::class,
@@ -26,9 +27,6 @@ return [
],
],
],
'errorHandler' => [
'errorAction' => 'site/error',
],
'request' => [
'baseUrl' => '/api',
],
@@ -38,7 +36,7 @@ return [
'rules' => require __DIR__ . '/routes.php',
],
'reCaptcha' => [
'class' => 'api\components\ReCaptcha\Component',
'class' => \api\components\ReCaptcha\Component::class,
],
'response' => [
'format' => \yii\web\Response::FORMAT_JSON,
@@ -48,5 +46,4 @@ return [
'grantTypes' => ['authorization_code'],
],
],
'params' => $params,
];