console.php 732 Bytes
Newer Older
Qiang Xue committed
1
<?php
2

Mark committed
3
Yii::setAlias('@tests', dirname(__DIR__) . '/tests');
4

5
$params = require(__DIR__ . '/params.php');
6 7
$db = require(__DIR__ . '/db.php');

sensorario committed
8
return [
9 10
    'id' => 'basic-console',
    'basePath' => dirname(__DIR__),
Qiang Xue committed
11
    'bootstrap' => ['log', 'gii'],
12
    'controllerNamespace' => 'app\commands',
Qiang Xue committed
13 14 15
    'modules' => [
        'gii' => 'yii\gii\Module',
    ],
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
        'log' => [
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
            ],
        ],
        'db' => $db,
    ],
    'params' => $params,
sensorario committed
31
];