You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							29 lines
						
					
					
						
							662 B
						
					
					
				
			
		
		
	
	
							29 lines
						
					
					
						
							662 B
						
					
					
				| <?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'); | |
|  | |
| if(isset($config)) | |
| { | |
| 	$app=new \yii\console\Application($config); | |
| 	$app->commandRunner->addCommands(YII_PATH.'/cli/commands'); | |
| 	$env=@getenv('YII_CONSOLE_COMMANDS'); | |
| 	if(!empty($env)) | |
| 		$app->commandRunner->addCommands($env); | |
| } else | |
| { | |
| 	$app=new \yii\console\Application(array( | |
| 		'basePath'=>__DIR__.'/cli', | |
| 	)); | |
| } | |
|  | |
| $app->run(); |