From 36184569a88360569d5050f9d25a96668bae30f9 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Sat, 15 Jun 2013 14:20:50 +0200 Subject: [PATCH] removed unnecessary check --- framework/yii/console/Application.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/framework/yii/console/Application.php b/framework/yii/console/Application.php index b1b12b0..c5e22ab 100644 --- a/framework/yii/console/Application.php +++ b/framework/yii/console/Application.php @@ -88,14 +88,9 @@ class Application extends \yii\base\Application * Handles the specified request. * @param Request $request the request to be handled * @return Response the resulting response - * @throws Exception when script is not running on command line. - * @throws Exception if the route is invalid */ public function handleRequest($request) { - if (!$request->getIsConsoleRequest()) { - throw new Exception(\Yii::t('yii', 'This script must be run from the command line.')); - } list ($route, $params) = $request->resolve(); $result = $this->runAction($route, $params); if ($result instanceof Response) {