yii 644 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/
 */

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

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

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

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