protected function getRoute() { $routeConfig = $this->application->getConfig('routes'); $context = new RequestContext('/'); $matcher = new UrlMatcher($routeConfig, $context); return $matcher->match($_SERVER['REQUEST_URI']); }