Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services_inline_self_ref.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 Symfony_DI_PhpDumper_Test_Inline_Self_Ref extends Container
18 {
19     private $parameters;
20     private $targetDirs = array();
21
22     public function __construct()
23     {
24         $this->services = array();
25         $this->normalizedIds = array(
26             'app\\foo' => 'App\\Foo',
27         );
28         $this->methodMap = array(
29             'App\\Foo' => 'getFooService',
30         );
31
32         $this->aliases = array();
33     }
34
35     public function getRemovedIds()
36     {
37         return array(
38             'Psr\\Container\\ContainerInterface' => true,
39             'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
40         );
41     }
42
43     public function compile()
44     {
45         throw new LogicException('You cannot compile a dumped container that was already compiled.');
46     }
47
48     public function isCompiled()
49     {
50         return true;
51     }
52
53     public function isFrozen()
54     {
55         @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);
56
57         return true;
58     }
59
60     /**
61      * Gets the public 'App\Foo' shared service.
62      *
63      * @return \App\Foo
64      */
65     protected function getFooService()
66     {
67         $b = new \App\Bar();
68         $a = new \App\Baz($b);
69
70         $this->services['App\Foo'] = $instance = new \App\Foo($a);
71
72         $b->foo = $instance;
73
74         $a->bar = $b;
75
76         return $instance;
77     }
78 }