Phlyty\App::route PHP Method

route() protected method

Attempts to match a route. If matched, sets $params and $routeIndex. Otherwise, throws an Exception\PageNotFoundException.
protected route ( Zend\Http\PhpEnvironment\Request $request, string $method ) : mixed
$request Zend\Http\PhpEnvironment\Request
$method string
return mixed The last handler return value
    protected function route(Request $request, $method)
    {
        $this->prepareRoutes();
        $this->registerRouteListener();
        $results = $this->trigger('route', ['request' => $request, 'method' => $method]);
        return $results->last();
    }