diff --git a/api/config/bootstrap.php b/api/config/bootstrap.php index e69de29..b3d9bbc 100644 --- a/api/config/bootstrap.php +++ b/api/config/bootstrap.php @@ -0,0 +1 @@ + 'app-backend', + 'id' => 'calorie-api', 'basePath' => dirname(__DIR__), - 'controllerNamespace' => 'backend\controllers', + 'controllerNamespace' => 'api\controllers', 'bootstrap' => ['log'], 'modules' => [], 'components' => [ @@ -23,7 +23,7 @@ return [ ], 'session' => [ // this is the name of the session cookie used for login on the backend - 'name' => 'advanced-backend', + 'name' => 'calorie-api', ], 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, diff --git a/api/config/params.php b/api/config/params.php index e69de29..b625128 100644 --- a/api/config/params.php +++ b/api/config/params.php @@ -0,0 +1,4 @@ + [ 'path' => 'dev', 'setWritable' => [ + 'api/runtime', 'console/runtime', 'frontend/runtime', 'frontend/web/assets', @@ -41,6 +42,7 @@ return [ 'yii_test', ], 'setCookieValidationKey' => [ + 'api/config/main-local.php', 'common/config/codeception-local.php', 'frontend/config/main-local.php', ],