mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-01 03:26:36 +08:00 
			
		
		
		
	Remove YII_ENV.
				
					
				
			This commit is contained in:
		| @ -86,11 +86,7 @@ class ServeController extends Controller | ||||
|             $command .= " -r \"{$router}\""; | ||||
|         } | ||||
|  | ||||
|         if (YII_ENV === 'test') { | ||||
|             return true; | ||||
|         } | ||||
|  | ||||
|         passthru($command); | ||||
|         $this->runCommand($command); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
| @ -132,4 +128,9 @@ class ServeController extends Controller | ||||
|         fclose($fp); | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     protected function runCommand($command) | ||||
|     { | ||||
|         passthru($command); | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Wilmer Arambula
					Wilmer Arambula