2013-05-24 10:14:49 -04:00
|
|
|
<?php
|
2014-01-04 01:16:05 +04:00
|
|
|
|
2017-08-07 23:46:37 +03:00
|
|
|
$params = require __DIR__ . '/params.php';
|
|
|
|
$db = require __DIR__ . '/db.php';
|
2014-01-03 19:28:33 -03:00
|
|
|
|
2015-09-08 23:18:39 +02:00
|
|
|
$config = [
|
2014-03-16 10:46:16 +06:00
|
|
|
'id' => 'basic-console',
|
|
|
|
'basePath' => dirname(__DIR__),
|
2015-09-08 23:18:39 +02:00
|
|
|
'bootstrap' => ['log'],
|
2014-03-16 10:46:16 +06:00
|
|
|
'controllerNamespace' => 'app\commands',
|
2017-11-07 13:29:58 +01:00
|
|
|
'aliases' => [
|
|
|
|
'@bower' => '@vendor/bower-asset',
|
|
|
|
'@npm' => '@vendor/npm-asset',
|
|
|
|
],
|
2014-03-16 10:46:16 +06:00
|
|
|
'components' => [
|
|
|
|
'cache' => [
|
|
|
|
'class' => 'yii\caching\FileCache',
|
|
|
|
],
|
|
|
|
'log' => [
|
|
|
|
'targets' => [
|
|
|
|
[
|
|
|
|
'class' => 'yii\log\FileTarget',
|
|
|
|
'levels' => ['error', 'warning'],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'db' => $db,
|
|
|
|
],
|
|
|
|
'params' => $params,
|
2015-10-21 03:07:07 +02:00
|
|
|
/*
|
|
|
|
'controllerMap' => [
|
|
|
|
'fixture' => [ // Fixture generation command line.
|
|
|
|
'class' => 'yii\faker\FixtureController',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
*/
|
2013-10-18 07:30:41 +02:00
|
|
|
];
|
2015-09-08 23:18:39 +02:00
|
|
|
|
|
|
|
if (YII_ENV_DEV) {
|
|
|
|
// configuration adjustments for 'dev' environment
|
|
|
|
$config['bootstrap'][] = 'gii';
|
|
|
|
$config['modules']['gii'] = [
|
|
|
|
'class' => 'yii\gii\Module',
|
|
|
|
];
|
|
|
|
}
|
2015-09-11 16:16:28 +03:00
|
|
|
|
|
|
|
return $config;
|