da8135e32b6e88cd999821a5617597bbf6b062ff
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services19.php
1 <?php
2
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;
9
10 /**
11  * ProjectServiceContainer.
12  *
13  * This class has been auto-generated
14  * by the Symfony Dependency Injection Component.
15  */
16 class ProjectServiceContainer extends Container
17 {
18     private $parameters;
19     private $targetDirs = array();
20
21     /**
22      * Constructor.
23      */
24     public function __construct()
25     {
26         parent::__construct();
27         $this->methodMap = array(
28             'service_from_anonymous_factory' => 'getServiceFromAnonymousFactoryService',
29             'service_with_method_call_and_factory' => 'getServiceWithMethodCallAndFactoryService',
30         );
31     }
32
33     /**
34      * Gets the public 'service_from_anonymous_factory' shared service.
35      *
36      * @return \Bar\FooClass
37      */
38     protected function getServiceFromAnonymousFactoryService()
39     {
40         return $this->services['service_from_anonymous_factory'] = (new \Bar\FooClass())->getInstance();
41     }
42
43     /**
44      * Gets the public 'service_with_method_call_and_factory' shared service.
45      *
46      * @return \Bar\FooClass
47      */
48     protected function getServiceWithMethodCallAndFactoryService()
49     {
50         $this->services['service_with_method_call_and_factory'] = $instance = new \Bar\FooClass();
51
52         $instance->setBar(\Bar\FooClass::getInstance());
53
54         return $instance;
55     }
56 }