Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
RequestHandlerServiceProvider | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
register | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Engelsystem\Middleware; |
6 | |
7 | use Engelsystem\Container\ServiceProvider; |
8 | |
9 | class RequestHandlerServiceProvider extends ServiceProvider |
10 | { |
11 | public function register(): void |
12 | { |
13 | /** @var RequestHandler $requestHandler */ |
14 | $requestHandler = $this->app->make(RequestHandler::class); |
15 | |
16 | $this->app->instance('request.handler', $requestHandler); |
17 | $this->app->bind(RequestHandler::class, 'request.handler'); |
18 | } |
19 | } |