Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services_private_frozen.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\FrozenParameterBag;
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         $this->services = array();
27         $this->methodMap = array(
28             'bar_service' => 'getBarServiceService',
29             'baz_service' => 'getBazServiceService',
30             'foo_service' => 'getFooServiceService',
31         );
32         $this->privates = array(
33             'baz_service' => true,
34         );
35
36         $this->aliases = array();
37     }
38
39     /**
40      * {@inheritdoc}
41      */
42     public function compile()
43     {
44         throw new LogicException('You cannot compile a dumped frozen container.');
45     }
46
47     /**
48      * {@inheritdoc}
49      */
50     public function isFrozen()
51     {
52         return true;
53     }
54
55     /**
56      * Gets the public 'bar_service' shared service.
57      *
58      * @return \stdClass
59      */
60     protected function getBarServiceService()
61     {
62         return $this->services['bar_service'] = new \stdClass(${($_ = isset($this->services['baz_service']) ? $this->services['baz_service'] : $this->getBazServiceService()) && false ?: '_'});
63     }
64
65     /**
66      * Gets the public 'foo_service' shared service.
67      *
68      * @return \stdClass
69      */
70     protected function getFooServiceService()
71     {
72         return $this->services['foo_service'] = new \stdClass(${($_ = isset($this->services['baz_service']) ? $this->services['baz_service'] : $this->getBazServiceService()) && false ?: '_'});
73     }
74
75     /**
76      * Gets the private 'baz_service' shared service.
77      *
78      * @return \stdClass
79      */
80     protected function getBazServiceService()
81     {
82         return $this->services['baz_service'] = new \stdClass();
83     }
84 }