dispatch($event, DynamicRouteEvent::NAME); if ($response = $event->getResponse()) { return $response; } throw new NotFoundHttpException(sprintf('No route found for "%s"', $path)); } }