| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1.156 |
| Changes | 4 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 20 | public function register() |
||
| 21 | { |
||
| 22 | 2 | $this->getContainer()->share(Event::class, function () { |
|
| 23 | 2 | $app = $this->getContainer()->get(Application::class); |
|
| 24 | 2 | $service = $this->getContainer()->get(Service::class); |
|
| 25 | 2 | $pool = $this->getContainer()->get(Pool::class); |
|
| 26 | 2 | $filesystem = $this->getContainer()->get(Filesystem::class); |
|
| 27 | 2 | return new Event($app, $service, $pool, $filesystem); |
|
| 28 | }); |
||
| 29 | |||
| 30 | $this->getContainer()->share(Service::class, function () { |
||
| 31 | $config = $this->getContainer()->get(Config::class); |
||
| 32 | $app = $this->getContainer()->get(Application::class); |
||
| 33 | return new Service($config['service'], $app); |
||
| 34 | }); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |