/** * returns the correct subroute for this request * @param PCRouterRoute $route * @param string $actionName * @return PCRouterSubroute the correct subroute for this request */ private function getSubrouteForRequest($route, $actionName) { $actionName = strtolower($actionName); return $route->getSubroute($actionName); }