Verified Commit 41d193f7 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

(cherry picked from commit 54f3e98a)
parent df9a2fa3
Loading
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -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;
    }
  }