73a7f259f86b5d04786d5b0f3faac288c6b56f71
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services_dedup_lazy_proxy.php
1 <?php
2
3 use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
4 use Symfony\Component\DependencyInjection\ContainerInterface;
5 use Symfony\Component\DependencyInjection\Container;
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\FrozenParameterBag;
10
11 /**
12  * This class has been auto-generated
13  * by the Symfony Dependency Injection Component.
14  *
15  * @final since Symfony 3.3
16  */
17 class ProjectServiceContainer extends Container
18 {
19     private $parameters;
20     private $targetDirs = array();
21
22     public function __construct()
23     {
24         $this->services = array();
25         $this->methodMap = array(
26             'bar' => 'getBarService',
27             'foo' => 'getFooService',
28         );
29
30         $this->aliases = array();
31     }
32
33     public function getRemovedIds()
34     {
35         return array(
36             'Psr\\Container\\ContainerInterface' => true,
37             'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
38         );
39     }
40
41     public function compile()
42     {
43         throw new LogicException('You cannot compile a dumped container that was already compiled.');
44     }
45
46     public function isCompiled()
47     {
48         return true;
49     }
50
51     public function isFrozen()
52     {
53         @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);
54
55         return true;
56     }
57
58     protected function createProxy($class, \Closure $factory)
59     {
60         return $factory();
61     }
62
63     /**
64      * Gets the public 'bar' shared service.
65      *
66      * @return \stdClass
67      */
68     protected function getBarService($lazyLoad = true)
69     {
70         // lazy factory for stdClass
71
72         return new \stdClass();
73     }
74
75     /**
76      * Gets the public 'foo' shared service.
77      *
78      * @return \stdClass
79      */
80     protected function getFooService($lazyLoad = true)
81     {
82         // lazy factory for stdClass
83
84         return new \stdClass();
85     }
86 }
87
88 // proxy code for stdClass