services = $this->privates = []; $this->methodMap = [ 'foo' => 'getFooService', ]; $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 [ 'Psr\\Container\\ContainerInterface' => true, 'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true, ]; } /** * Gets the public 'foo' shared autowired service. * * @return \Foo */ protected function getFooService() { return $this->services['foo'] = new \Foo(); } }