console.php 544 Bytes
Newer Older
Qiang Xue committed
1
<?php
2
$params = require(__DIR__ . '/params.php');
Qiang Xue committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
return array(
	'id' => 'bootstrap-console',
	'basePath' => dirname(__DIR__),
	'preload' => array('log'),
	'controllerPath' => dirname(__DIR__) . '/commands',
	'controllerNamespace' => 'app\commands',
	'modules' => array(
	),
	'components' => array(
		'cache' => array(
			'class' => 'yii\caching\FileCache',
		),
		'log' => array(
			'targets' => array(
				array(
Qiang Xue committed
18
					'class' => 'yii\log\FileTarget',
Qiang Xue committed
19 20 21 22 23
					'levels' => array('error', 'warning'),
				),
			),
		),
	),
24
	'params' => $params,
Qiang Xue committed
25
);