yiic.php 629 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/
 */

10 11 12 13
if(!ini_get('date.timezone')) {
	date_default_timezone_set('UTC');
}

Qiang Xue committed
14 15
defined('YII_DEBUG') or define('YII_DEBUG', true);

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

19
require(__DIR__ . '/Yii.php');
Alexander Makarov committed
20

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