Skip to content
Snippets Groups Projects
Verified Commit 54f3e98a authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3416798 by GafgarionMorua, arunkumark, larowlan, smustgrave,...

Issue #3416798 by GafgarionMorua, arunkumark, larowlan, smustgrave, DamienMcKenna: Refactor the breadcrumb generation "catch" code
parent a2c8988d
No related branches found
No related tags found
No related merge requests found
......@@ -226,19 +226,7 @@ protected function getRequestForPath($path, array $exclude) {
$request->attributes->add($this->router->matchRequest($request));
return $request;
}
catch (ParamNotConvertedException $e) {
return NULL;
}
catch (ResourceNotFoundException $e) {
return NULL;
}
catch (MethodNotAllowedException $e) {
return NULL;
}
catch (AccessDeniedHttpException $e) {
return NULL;
}
catch (NotFoundHttpException $e) {
catch (ParamNotConvertedException | ResourceNotFoundException | MethodNotAllowedException | AccessDeniedHttpException | NotFoundHttpException $e) {
return NULL;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment