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

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

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

16
require(__DIR__ . '/Yii.php');
Alexander Makarov committed
17

Alexander Makarov committed
18
$application = new yii\console\Application([
Qiang Xue committed
19
	'id' => 'yii-console',
Qiang Xue committed
20
	'basePath' => __DIR__ . '/console',
Qiang Xue committed
21
	'controllerPath' => '@yii/console/controllers',
Alexander Makarov committed
22
]);
23 24
$exitCode = $application->run();
exit($exitCode);