yiic.php 570 Bytes
Newer Older
Alexander Makarov committed
1 2 3 4 5
<?php
/**
 * Yii console bootstrap file.
 *
 * @link http://www.yiiframework.com/
Qiang Xue committed
6
 * @copyright Copyright (c) 2008 Yii Software LLC
Alexander Makarov committed
7 8 9
 * @license http://www.yiiframework.com/license/
 */

Qiang Xue committed
10 11
defined('YII_DEBUG') or define('YII_DEBUG', true);

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

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

Qiang Xue committed
17 18
$id = 'yiic';
$basePath = __DIR__ . '/console';
Alexander Makarov committed
19

Qiang Xue committed
20 21 22
$application = new yii\console\Application($id, $basePath, array(
	'controllerPath' => '@yii/console/controllers',
));
Qiang Xue committed
23
$application->run();