services = $this->privates = []; $this->methodMap = [ 'bar' => 'getBarService', ]; $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, 'foo' => true, ]; } /** * Gets the public 'bar' shared service. * * @return \stdClass */ protected function getBarService() { $a = new \stdClass(); $a->add($this); return $this->services['bar'] = new \stdClass($a); } }