services = $this->privates = []; $this->methodMap = [ 'App\\Bus' => 'getBusService', 'App\\Db' => 'getDbService', ]; $this->aliases = []; } public function compile(): void { throw new LogicException('You cannot compile a dumped container that was already compiled.'); } public function isCompiled(): bool { return true; } public function getRemovedIds(): array { return [ 'App\\Handler1' => true, 'App\\Handler2' => true, 'App\\Processor' => true, 'App\\Registry' => true, 'App\\Schema' => true, 'Psr\\Container\\ContainerInterface' => true, 'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true, ]; } /** * Gets the public 'App\Bus' shared service. * * @return \App\Bus */ protected function getBusService() { $a = ($this->services['App\\Db'] ?? $this->getDbService()); $this->services['App\\Bus'] = $instance = new \App\Bus($a); $b = ($this->privates['App\\Schema'] ?? $this->getSchemaService()); $c = new \App\Registry(); $c->processor = [0 => $a, 1 => $instance]; $d = new \App\Processor($c, $a); $instance->handler1 = new \App\Handler1($a, $b, $d); $instance->handler2 = new \App\Handler2($a, $b, $d); return $instance; } /** * Gets the public 'App\Db' shared service. * * @return \App\Db */ protected function getDbService() { $this->services['App\\Db'] = $instance = new \App\Db(); $instance->schema = ($this->privates['App\\Schema'] ?? $this->getSchemaService()); return $instance; } /** * Gets the private 'App\Schema' shared service. * * @return \App\Schema */ protected function getSchemaService() { $a = ($this->services['App\\Db'] ?? $this->getDbService()); if (isset($this->privates['App\\Schema'])) { return $this->privates['App\\Schema']; } return $this->privates['App\\Schema'] = new \App\Schema($a); } }