src/Console/Routes/Router.php
public function searchRoute(RequestApplicationInterface $app, $routePath, $method = 'GET', $withInternal = false)
    {
        //If no command then show default ('help')
        if ($routePath === "" || $routePath === "/") {
            $routePath = 'help';
        }
        /** @var Controller $controller */
        list($controller, $actionName) = $this->createController($routePath, ['app' => $app], false);
        if ($controller === null || (!$withInternal && $controller instanceof Reaction\Routes\ControllerInternalInterface)) {
            return [static::ERROR_NOT_FOUND, null, null, []];
        }
        //Params are ignored by console controllers (parameters extracted from command line on action run)
        return [static::ERROR_OK, $controller, $actionName, []];
    }
public function searchRoute(RequestApplicationInterface $app, $routePath, $method = 'GET', $withInternal = false)
    {
        //If no command then show default ('help')
        if ($routePath === "" || $routePath === "/") {
            $routePath = 'help';
        }
        /** @var Controller $controller */
        list($controller, $actionName) = $this->createController($routePath, ['app' => $app], false);
        if ($controller === null || (!$withInternal && $controller instanceof Reaction\Routes\ControllerInternalInterface)) {
            return [static::ERROR_NOT_FOUND, null, null, []];
        }
        //Params are ignored by console controllers (parameters extracted from command line on action run)
        return [static::ERROR_OK, $controller, $actionName, []];
    }
Search for a given route
@param RequestApplicationInterface $app
@param string                      $routePath
@param string                      $method
@param bool                        $withInternal
@return array