services = $this->privates = array(); $this->methodMap = array( 'Bar\\Foo' => 'getFooService', 'Foo\\Foo' => 'getFoo2Service', ); $this->aliases = array(); } public function reset() { $this->privates = array(); parent::reset(); } public function compile() { throw new LogicException('You cannot compile a dumped container that was already compiled.'); } public function isCompiled() { return true; } /** * Gets the public 'Bar\Foo' shared service. * * @return \Bar\Foo */ protected function getFooService() { return $this->services['Bar\Foo'] = new \Bar\Foo(); } /** * Gets the public 'Foo\Foo' shared service. * * @return \Foo\Foo */ protected function getFoo2Service() { return $this->services['Foo\Foo'] = new \Foo\Foo(); } }