|  |  |  | @ -89,7 +89,7 @@ class Application extends \yii\base\Application | 
			
		
	
		
			
				
					|  |  |  |  | 	 * @param Request $request the request to be handled | 
			
		
	
		
			
				
					|  |  |  |  | 	 * @return Response the resulting response | 
			
		
	
		
			
				
					|  |  |  |  | 	 */ | 
			
		
	
		
			
				
					|  |  |  |  | 	public function handle($request) | 
			
		
	
		
			
				
					|  |  |  |  | 	public function handleRequest($request) | 
			
		
	
		
			
				
					|  |  |  |  | 	{ | 
			
		
	
		
			
				
					|  |  |  |  | 		list ($route, $params) = $request->resolve(); | 
			
		
	
		
			
				
					|  |  |  |  | 		$result = $this->runAction($route, $params); | 
			
		
	
	
		
			
				
					|  |  |  | @ -103,24 +103,6 @@ class Application extends \yii\base\Application | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 	/** | 
			
		
	
		
			
				
					|  |  |  |  | 	 * Processes the request. | 
			
		
	
		
			
				
					|  |  |  |  | 	 * The request is represented in terms of a controller route and action parameters. | 
			
		
	
		
			
				
					|  |  |  |  | 	 * @return integer the exit status of the controller action (0 means normal, non-zero values mean abnormal) | 
			
		
	
		
			
				
					|  |  |  |  | 	 * @throws Exception if the script is not running from the command line | 
			
		
	
		
			
				
					|  |  |  |  | 	 */ | 
			
		
	
		
			
				
					|  |  |  |  | 	public function processRequest() | 
			
		
	
		
			
				
					|  |  |  |  | 	{ | 
			
		
	
		
			
				
					|  |  |  |  | 		/** @var $request Request */ | 
			
		
	
		
			
				
					|  |  |  |  | 		$request = $this->getRequest(); | 
			
		
	
		
			
				
					|  |  |  |  | 		if ($request->getIsConsoleRequest()) { | 
			
		
	
		
			
				
					|  |  |  |  | 			list ($route, $params) = $request->resolve(); | 
			
		
	
		
			
				
					|  |  |  |  | 			return $this->runAction($route, $params); | 
			
		
	
		
			
				
					|  |  |  |  | 		} else { | 
			
		
	
		
			
				
					|  |  |  |  | 			throw new Exception(\Yii::t('yii', 'This script must be run from the command line.')); | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 	/** | 
			
		
	
		
			
				
					|  |  |  |  | 	 * Returns the response component. | 
			
		
	
		
			
				
					|  |  |  |  | 	 * @return Response the response component | 
			
		
	
		
			
				
					|  |  |  |  | 	 */ | 
			
		
	
	
		
			
				
					|  |  |  | 
 |