mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-08 08:17:24 +01:00
21 lines
521 B
PHP
21 lines
521 B
PHP
<?php
|
|
/**
|
|
* Yii console bootstrap file.
|
|
*
|
|
* @link http://www.yiiframework.com/
|
|
* @copyright Copyright © 2008-2012 Yii Software LLC
|
|
* @license http://www.yiiframework.com/license/
|
|
*/
|
|
|
|
// fcgi doesn't have STDIN defined by default
|
|
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
|
|
|
require(__DIR__ . '/yii.php');
|
|
|
|
$config = array(
|
|
'controllerPath' => '@yii/console/commands',
|
|
);
|
|
$id = 'yiic';
|
|
$basePath = __DIR__ . '/console';
|
|
|
|
yii\console\Application::newInstance($config, $id, $basePath)->run(); |