Skip to content

Instantly share code, notes, and snippets.

@schmunk42
Created July 6, 2014 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schmunk42/f9b43f3369100ec22bf3 to your computer and use it in GitHub Desktop.
Save schmunk42/f9b43f3369100ec22bf3 to your computer and use it in GitHub Desktop.
config with markers
<?php
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/../../common/config/params-local.php'),
require(__DIR__ . '/params.php'),
require(__DIR__ . '/params-local.php')
);
return [
'id' => 'app-backend', #value:id#
'basePath' => dirname(__DIR__),
'controllerNamespace' => 'backend\controllers',
'bootstrap' => ['log'],
'modules' => [
#array:modules>begin#
#array:modules>end#
],
'components' => [
#array:components>begin#
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
#array:components.log.targets>begin#
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
#array:components.log.targets>end#
],
],
'errorHandler' => [
'errorAction' => 'site/error',
],
#array:components>end#
],
'params' => $params,
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment