| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 20 | public function register() |
||
| 21 | { |
||
| 22 | 6 | $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 | 6 | }); |
|
| 29 | |||
| 30 | 6 | $this->getContainer()->share(Service::class, function () { |
|
| 31 | 6 | $config = $this->getContainer()->get(Config::class); |
|
| 32 | 6 | $app = $this->getContainer()->get(Application::class); |
|
| 33 | 6 | return new Service($config['service'], $app); |
|
| 34 | 6 | }); |
|
| 35 | 6 | } |
|
| 36 | } |
||
| 37 |