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