2013-05-24 10:14:49 -04:00
|
|
|
<?php
|
2014-01-04 01:16:05 +04:00
|
|
|
|
2014-01-04 02:18:02 +04:00
|
|
|
Yii::setAlias('@tests', dirname(__DIR__) . '/tests');
|
2014-01-04 01:16:05 +04:00
|
|
|
|
2013-05-24 19:00:58 +04:00
|
|
|
$params = require(__DIR__ . '/params.php');
|
2014-01-03 19:28:33 -03:00
|
|
|
$db = require(__DIR__ . '/db.php');
|
|
|
|
|
2013-10-18 07:30:41 +02:00
|
|
|
return [
|
2014-03-16 10:46:16 +06:00
|
|
|
'id' => 'basic-console',
|
|
|
|
'basePath' => dirname(__DIR__),
|
|
|
|
'controllerNamespace' => 'app\commands',
|
|
|
|
'extensions' => require(__DIR__ . '/../vendor/yiisoft/extensions.php'),
|
|
|
|
'components' => [
|
|
|
|
'cache' => [
|
|
|
|
'class' => 'yii\caching\FileCache',
|
|
|
|
],
|
|
|
|
'log' => [
|
|
|
|
'targets' => [
|
|
|
|
[
|
|
|
|
'class' => 'yii\log\FileTarget',
|
|
|
|
'levels' => ['error', 'warning'],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'db' => $db,
|
|
|
|
],
|
|
|
|
'params' => $params,
|
2013-10-18 07:30:41 +02:00
|
|
|
];
|