$message=sprintf('No route found for "%s %s"',$request->getMethod(),$request->getPathInfo());
thrownewNotFoundHttpException($message,$e);
}
catch(MethodNotAllowedException$e){
$message=sprintf('No route found for "%s %s": Method Not Allowed (Allow: %s)',$request->getMethod(),$request->getPathInfo(),strtoupper(implode(', ',$e->getAllowedMethods())));