1275e9f2642a36a989e69e8312bf5a03b386ab78
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services_private_frozen.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_service' => 'getBarServiceService',
27             'baz_service' => 'getBazServiceService',
28             'foo_service' => 'getFooServiceService',
29         );
30         $this->privates = array(
31             'baz_service' => 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             'baz_service' => true,
43         );
44     }
45
46     public function compile()
47     {
48         throw new LogicException('You cannot compile a dumped container that was already compiled.');
49     }
50
51     public function isCompiled()
52     {
53         return true;
54     }
55
56     public function isFrozen()
57     {
58         @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);
59
60         return true;
61     }
62
63     /**
64      * Gets the public 'bar_service' shared service.
65      *
66      * @return \stdClass
67      */
68     protected function getBarServiceService()
69     {
70         return $this->services['bar_service'] = new \stdClass(${($_ = isset($this->services['baz_service']) ? $this->services['baz_service'] : $this->services['baz_service'] = new \stdClass()) && false ?: '_'});
71     }
72
73     /**
74      * Gets the public 'foo_service' shared service.
75      *
76      * @return \stdClass
77      */
78     protected function getFooServiceService()
79     {
80         return $this->services['foo_service'] = new \stdClass(${($_ = isset($this->services['baz_service']) ? $this->services['baz_service'] : $this->services['baz_service'] = new \stdClass()) && false ?: '_'});
81     }
82
83     /**
84      * Gets the private 'baz_service' shared service.
85      *
86      * @return \stdClass
87      */
88     protected function getBazServiceService()
89     {
90         return $this->services['baz_service'] = new \stdClass();
91     }
92 }