/** * Are the given route conditions matching * @return bool */ protected function routeConditionsAreValid() { foreach ($this->routeMetaData->getRouteConditions() as $key => $condition) { if (!preg_match('/^' . $condition . '$/', $this->route_params[$key])) { $this->param_names_path = $this->route_params = $this->unmapped_route_params = []; return false; } } return true; }