console.php 762 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
	'id' => 'basic-console',
Qiang Xue committed
10
	'basePath' => dirname(__DIR__),
11
	'preload' => ['log'],
Qiang Xue committed
12 13
	'controllerPath' => dirname(__DIR__) . '/commands',
	'controllerNamespace' => 'app\commands',
14
	'extensions' => require(__DIR__ . '/../vendor/yiisoft/extensions.php'),
sensorario committed
15 16
	'components' => [
		'cache' => [
Qiang Xue committed
17
			'class' => 'yii\caching\FileCache',
sensorario committed
18 19 20 21
		],
		'log' => [
			'targets' => [
				[
Qiang Xue committed
22
					'class' => 'yii\log\FileTarget',
sensorario committed
23 24 25 26
					'levels' => ['error', 'warning'],
				],
			],
		],
27
		'db' => $db,
28 29 30 31
		'fixture' => [
			'class' => 'yii\test\DbFixtureManager',
			'basePath' => '@tests/unit/fixtures',
		],
sensorario committed
32
	],
33
	'params' => $params,
sensorario committed
34
];