| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 25 | public function register() |
||
| 26 | { |
||
| 27 | $this->getContainer()->share('request', function () { |
||
| 28 | return ServerRequestFactory::fromGlobals(); |
||
| 29 | }); |
||
| 30 | |||
| 31 | $this->getContainer()->share('response', Response::class); |
||
| 32 | |||
| 33 | $this->getContainer()->share('emitter', SapiEmitter::class); |
||
| 34 | |||
| 35 | $this->getContainer()->share('route', function () { |
||
| 36 | return require $this->getContainer() |
||
| 37 | ->get('baseDir').'/config/routes.php'; |
||
| 38 | }); |
||
| 39 | } |
||
| 40 | } |