Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services_private_in_expression.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             'private_foo' => 'getPrivateFooService',
27             'public_foo' => 'getPublicFooService',
28         );
29         $this->privates = array(
30             'private_foo' => true,
31         );
32
33         $this->aliases = array();
34     }
35
36     public function getRemovedIds()
37     {
38         return array(
39             'Psr\\Container\\ContainerInterface' => true,
40             'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
41             'private_bar' => true,
42             'private_foo' => 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 'public_foo' shared service.
65      *
66      * @return \stdClass
67      */
68     protected function getPublicFooService()
69     {
70         return $this->services['public_foo'] = new \stdClass(${($_ = isset($this->services['private_foo']) ? $this->services['private_foo'] : $this->services['private_foo'] = new \stdClass()) && false ?: '_'});
71     }
72
73     /**
74      * Gets the private 'private_foo' shared service.
75      *
76      * @return \stdClass
77      */
78     protected function getPrivateFooService()
79     {
80         return $this->services['private_foo'] = new \stdClass();
81     }
82 }