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