Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
47 | final public function handle() |
||
48 | { |
||
49 | $request = $this->container->get('request'); |
||
50 | $response = $this->container->get('response'); |
||
51 | |||
52 | try { |
||
53 | return $this->route->dispatch( |
||
54 | $request, |
||
55 | $response |
||
56 | ); |
||
57 | } catch (NotFoundException $exception) { |
||
58 | /** |
||
59 | * handle 404 |
||
60 | */ |
||
61 | return $response->errorNotFound(); |
||
62 | } |
||
63 | } |
||
64 | |||
91 | } |