3 use Symfony\Component\DependencyInjection\ContainerInterface;
4 use Symfony\Component\DependencyInjection\Container;
5 use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
6 use Symfony\Component\DependencyInjection\Exception\LogicException;
7 use Symfony\Component\DependencyInjection\Exception\RuntimeException;
8 use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
11 * ProjectServiceContainer.
13 * This class has been auto-generated
14 * by the Symfony Dependency Injection Component.
16 class ProjectServiceContainer extends Container
19 private $targetDirs = array();
24 public function __construct()
26 parent::__construct();
27 $this->methodMap = array(
28 'service_from_anonymous_factory' => 'getServiceFromAnonymousFactoryService',
29 'service_with_method_call_and_factory' => 'getServiceWithMethodCallAndFactoryService',
34 * Gets the public 'service_from_anonymous_factory' shared service.
36 * @return \Bar\FooClass
38 protected function getServiceFromAnonymousFactoryService()
40 return $this->services['service_from_anonymous_factory'] = (new \Bar\FooClass())->getInstance();
44 * Gets the public 'service_with_method_call_and_factory' shared service.
46 * @return \Bar\FooClass
48 protected function getServiceWithMethodCallAndFactoryService()
50 $this->services['service_with_method_call_and_factory'] = $instance = new \Bar\FooClass();
52 $instance->setBar(\Bar\FooClass::getInstance());