3 use Symfony\Component\DependencyInjection\ContainerInterface;
4 use Symfony\Component\DependencyInjection\Container;
5 use Symfony\Component\DependencyInjection\Exception\InactiveScopeException;
6 use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
7 use Symfony\Component\DependencyInjection\Exception\LogicException;
8 use Symfony\Component\DependencyInjection\Exception\RuntimeException;
9 use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
12 * ProjectServiceContainer.
14 * This class has been auto-generated
15 * by the Symfony Dependency Injection Component.
17 class ProjectServiceContainer extends Container
20 private $targetDirs = array();
25 public function __construct()
27 parent::__construct();
28 $this->methodMap = array(
29 'service_from_anonymous_factory' => 'getServiceFromAnonymousFactoryService',
30 'service_with_method_call_and_factory' => 'getServiceWithMethodCallAndFactoryService',
35 * Gets the 'service_from_anonymous_factory' service.
37 * This service is shared.
38 * This method always returns the same instance of the service.
40 * @return \Bar\FooClass A Bar\FooClass instance
42 protected function getServiceFromAnonymousFactoryService()
44 return $this->services['service_from_anonymous_factory'] = call_user_func(array(new \Bar\FooClass(), 'getInstance'));
48 * Gets the 'service_with_method_call_and_factory' service.
50 * This service is shared.
51 * This method always returns the same instance of the service.
53 * @return \Bar\FooClass A Bar\FooClass instance
55 protected function getServiceWithMethodCallAndFactoryService()
57 $this->services['service_with_method_call_and_factory'] = $instance = new \Bar\FooClass();
59 $instance->setBar(\Bar\FooClass::getInstance());