yiic.php 521 Bytes
Newer Older
Alexander Makarov committed
1 2 3 4 5 6 7 8 9
<?php
/**
 * 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
10 11 12
// fcgi doesn't have STDIN defined by default
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));

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

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

Qiang Xue committed
21
yii\console\Application::newInstance($config, $id, $basePath)->run();