6c3b1405069f1bcab7be91f5ca58fdfc16ba2c0c
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services_non_shared_lazy.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         $this->privates = array(
30             'bar' => true,
31             'foo' => true,
32         );
33
34         $this->aliases = array();
35     }
36
37     public function getRemovedIds()
38     {
39         return array(
40             'Psr\\Container\\ContainerInterface' => true,
41             'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
42             'bar' => true,
43             'foo' => true,
44         );
45     }
46
47     public function compile()
48     {
49         throw new LogicException('You cannot compile a dumped container that was already compiled.');
50     }
51
52     public function isCompiled()
53     {
54         return true;
55     }
56
57     public function isFrozen()
58     {
59         @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);
60
61         return true;
62     }
63
64     protected function createProxy($class, \Closure $factory)
65     {
66         return $factory();
67     }
68
69     /**
70      * Gets the private 'bar' shared service.
71      *
72      * @return \stdClass
73      */
74     protected function getBarService()
75     {
76         return $this->services['bar'] = new \stdClass(${($_ = isset($this->services['foo']) ? $this->services['foo'] : $this->getFooService()) && false ?: '_'});
77     }
78
79     /**
80      * Gets the private 'foo' service.
81      *
82      * @return \stdClass
83      */
84     protected function getFooService($lazyLoad = true)
85     {
86         // lazy factory for stdClass
87
88         return new \stdClass();
89     }
90 }
91
92 // proxy code for stdClass