X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fresolver%2Fcontroller%2Fconsole%2Fclass_ConsoleControllerResolver.php;fp=inc%2Fclasses%2Fmain%2Fresolver%2Fcontroller%2Fconsole%2Fclass_ConsoleControllerResolver.php;h=418a6e2a6eb24d84dac463c56d0d1094211372cc;hb=80f58e52514b2fca93a2d37977a6874ece9b1e54;hp=4298385fdb27f99d7db2204d76c067b028496077;hpb=ef7723fa147bef65abc475348d892ac7e047793b;p=core.git diff --git a/inc/classes/main/resolver/controller/console/class_ConsoleControllerResolver.php b/inc/classes/main/resolver/controller/console/class_ConsoleControllerResolver.php index 4298385f..418a6e2a 100644 --- a/inc/classes/main/resolver/controller/console/class_ConsoleControllerResolver.php +++ b/inc/classes/main/resolver/controller/console/class_ConsoleControllerResolver.php @@ -66,38 +66,6 @@ class ConsoleControllerResolver extends BaseControllerResolver implements Contro // Return the prepared instance return $resolverInstance; } - - /** - * Resolves the default controller of the given command - * - * @return $controllerInstance A controller instance for the default - * command - * @throws InvalidControllerInstanceException Thrown if $controllerInstance - * is invalid - */ - public function resolveController () { - // Init variables - $controllerName = ''; - $controllerInstance = NULL; - - // Get the command name - $controllerName = $this->getControllerName(); - - // Get the command - $controllerInstance = $this->loadController($controllerName); - - // And validate it - if ((!is_object($controllerInstance)) || (!$controllerInstance instanceof Controller)) { - // This command has an invalid instance! - throw new InvalidControllerInstanceException(array($this, $controllerName), self::EXCEPTION_INVALID_CONTROLLER); - } // END - if - - // Set last controller - $this->setResolvedInstance($controllerInstance); - - // Return the maybe resolved instance - return $controllerInstance; - } } // [EOF]