Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services24.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             'foo' => 'getFooService',
27         );
28
29         $this->aliases = array();
30     }
31
32     public function getRemovedIds()
33     {
34         return array(
35             'Psr\\Container\\ContainerInterface' => true,
36             'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
37         );
38     }
39
40     public function compile()
41     {
42         throw new LogicException('You cannot compile a dumped container that was already compiled.');
43     }
44
45     public function isCompiled()
46     {
47         return true;
48     }
49
50     public function isFrozen()
51     {
52         @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);
53
54         return true;
55     }
56
57     /**
58      * Gets the public 'foo' shared autowired service.
59      *
60      * @return \Foo
61      */
62     protected function getFooService()
63     {
64         return $this->services['foo'] = new \Foo();
65     }
66 }