| @@ 30-36 (lines=7) @@ | ||
| 27 | ||
| 28 | public function register() |
|
| 29 | { |
|
| 30 | $this->getContainer()->share(Config::class, function () { |
|
| 31 | $app = $this->getContainer()->get(Application::class); |
|
| 32 | $framework = $this->getContainer()->get(Framework::class); |
|
| 33 | $fs = $this->getContainer()->get(Filesystem::class); |
|
| 34 | $converter = $this->getContainer()->get(Converter::class); |
|
| 35 | return new Config($app, $framework, $fs, $converter); |
|
| 36 | }); |
|
| 37 | ||
| 38 | $this->getContainer()->share(Cache::class, function () { |
|
| 39 | $fs = $this->getContainer()->get(Filesystem::class); |
|
| @@ 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); |
|