2016-01-02 19:13:18 +05:30
|
|
|
<?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-console',
|
|
|
|
'basePath' => dirname(__DIR__),
|
|
|
|
'bootstrap' => ['log'],
|
|
|
|
'controllerNamespace' => 'console\controllers',
|
|
|
|
'components' => [
|
|
|
|
'log' => [
|
|
|
|
'targets' => [
|
|
|
|
[
|
|
|
|
'class' => 'yii\log\FileTarget',
|
|
|
|
'levels' => ['error', 'warning'],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2016-01-03 05:48:37 +05:30
|
|
|
'controllerMap' => [
|
|
|
|
'migrate' => [
|
|
|
|
'class' => 'yii\console\controllers\MigrateController',
|
|
|
|
'templateFile' => '@console/views/migration.php',
|
|
|
|
],
|
|
|
|
],
|
2016-01-02 19:13:18 +05:30
|
|
|
'params' => $params,
|
|
|
|
];
|