| @@ 23-29 (lines=7) @@ | ||
| 20 | ||
| 21 | public function register()  | 
                                |
| 22 |     { | 
                                |
| 23 |         $this->getContainer()->share(Event::class, function () { | 
                                |
| 24 | $app = $this->getContainer()->get(Application::class);  | 
                                |
| 25 | $service = $this->getContainer()->get(Service::class);  | 
                                |
| 26 | $pool = $this->getContainer()->get(Pool::class);  | 
                                |
| 27 | $filesystem = $this->getContainer()->get(Filesystem::class);  | 
                                |
| 28 | return new Event($app, $service, $pool, $filesystem);  | 
                                |
| 29 | });  | 
                                |
| 30 | ||
| 31 |         $this->getContainer()->share(Service::class, function () { | 
                                |
| 32 | $config = $this->getContainer()->get(Config::class);  | 
                                |
| @@ 34-40 (lines=7) @@ | ||
| 31 | ||
| 32 | public function register()  | 
                                |
| 33 |     { | 
                                |
| 34 |         $this->getContainer()->share(Config::class, function () { | 
                                |
| 35 | $app = $this->getContainer()->get(Application::class);  | 
                                |
| 36 | $framework = $this->getContainer()->get(Framework::class);  | 
                                |
| 37 | $fs = $this->getContainer()->get(Filesystem::class);  | 
                                |
| 38 | $converter = $this->getContainer()->get(Converter::class);  | 
                                |
| 39 | return new Config($app, $framework, $fs, $converter);  | 
                                |
| 40 | });  | 
                                |
| 41 | ||
| 42 |         $this->getContainer()->share(Cache::class, function () { | 
                                |
| 43 | $fs = $this->getContainer()->get(Filesystem::class);  | 
                                |