yiic.php 572 Bytes
Newer Older
Alexander Makarov committed
1
<?php
2
define('YII_DEBUG', true);
Alexander Makarov committed
3 4 5 6 7 8 9 10
/**
 * Yii console bootstrap file.
 *
 * @link http://www.yiiframework.com/
 * @copyright Copyright &copy; 2008-2012 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

Qiang Xue committed
11 12 13
// fcgi doesn't have STDIN defined by default
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));

Qiang Xue committed
14
require(__DIR__ . '/yii.php');
Alexander Makarov committed
15

Qiang Xue committed
16
$config = array(
17
	'controllerPath' => '@yii/console/controllers',
Qiang Xue committed
18 19 20
);
$id = 'yiic';
$basePath = __DIR__ . '/console';
Alexander Makarov committed
21

Qiang Xue committed
22 23
$application = new yii\console\Application($id, $basePath, $config);
$application->run();