Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | final public function handle() |
||
36 | { |
||
37 | try { |
||
38 | /** |
||
39 | * process the request |
||
40 | */ |
||
41 | return $this->route->dispatch( |
||
42 | $this->container->get('request'), |
||
43 | $this->container->get(\PhpBootstrap\Contracts\Response::class) |
||
44 | ); |
||
45 | } catch (\League\Route\Http\Exception\NotFoundException $exception) { |
||
46 | /** |
||
47 | * handle 404 |
||
48 | */ |
||
49 | $response = new \PhpBootstrap\Services\Response(); |
||
50 | return $response->errorNotFound(); |
||
51 | } |
||
52 | } |
||
53 | |||
82 | } |