<?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();