Conditions | 2 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function __invoke(Request $request) |
||
46 | { |
||
47 | try { |
||
48 | $redirection = $this |
||
49 | ->redirectionFactory |
||
50 | ->generate($request) |
||
51 | ; |
||
52 | $response = new RedirectResponse($redirection); |
||
53 | } catch (\Exception $exception) { |
||
54 | throw new HttpException( |
||
55 | Response::HTTP_INTERNAL_SERVER_ERROR, |
||
56 | 'Internal Error', |
||
57 | $exception |
||
58 | ); |
||
59 | } |
||
60 | |||
61 | return $response; |
||
62 | } |
||
64 |