| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 1 | public function register(): void |
|
| 42 | { |
||
| 43 | $this->container->share('request', function () { |
||
| 44 | 1 | return ServerRequestFactory::fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES); |
|
| 45 | 1 | }); |
|
| 46 | 1 | $this->container->share('response', Response::class); |
|
| 47 | 1 | $this->container->share('emitter', SapiEmitter::class); |
|
| 48 | |||
| 49 | 1 | $this->container->share('router', function () { |
|
| 50 | 1 | $router = new RouteCollection($this->container); |
|
| 51 | |||
| 52 | 1 | $this->routes($router); |
|
| 53 | |||
| 54 | 1 | return $router; |
|
| 55 | 1 | }); |
|
| 56 | 1 | } |
|
| 57 | } |
||
| 58 |