services = array(); $this->methodMap = array( 'foo' => 'getFooService', ); $this->aliases = array(); } /** * {@inheritdoc} */ public function compile() { throw new LogicException('You cannot compile a dumped container that was already compiled.'); } /** * {@inheritdoc} */ public function isCompiled() { return true; } /** * {@inheritdoc} */ public function isFrozen() { @trigger_error(sprintf('The %s() method is deprecated since Symfony 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED); return true; } /** * Gets the public 'foo' shared autowired service. * * @return \Foo */ protected function getFooService() { return $this->services['foo'] = new \Foo(); } }