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