public function callController($route = null)
    {
        if (!isset($route)) {
            $route = $this->route;
        }

        $callback = Handler::get($route, null, 'controller');

        if (!$callback[0] instanceof CliController) {
            throw new LogicException('Controller must be instance of \gplcart\core\CliController');
        }

        call_user_func($callback);

        throw new LogicException('The command was completed incorrectly');
    }
public function callController($route = null)
    {
        if (!isset($route)) {
            $route = $this->route;
        }

        $callback = Handler::get($route, null, 'controller');

        if (!$callback[0] instanceof CliController) {
            throw new LogicException('Controller must be instance of \gplcart\core\CliController');
        }

        call_user_func($callback);

        throw new LogicException('The command was completed incorrectly');
    }
public function callController ( $ route = null ) { if ( ! isset ( $ route ) ) { $ route = $ this -> route ; } $ callback = Handler :: get ( $ route , null , 'controller' ) ; if ( ! $ callback [ 0 ] instanceof CliController ) { throw new LogicException ( 'Controller must be instance of \gplcart\core\CliController' ) ; } call_user_func ( $ callback ) ; throw new LogicException ( 'The command was completed incorrectly' ) ; }
Call a route controller
@param null|array
@throws LogicException
Call a route controller