Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services_tsantos.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->normalizedIds = array(
26             'tsantos\\serializer\\serializerinterface' => 'TSantos\\Serializer\\SerializerInterface',
27         );
28         $this->methodMap = array(
29             'tsantos_serializer' => 'getTsantosSerializerService',
30         );
31         $this->aliases = array(
32             'TSantos\\Serializer\\SerializerInterface' => 'tsantos_serializer',
33         );
34     }
35
36     public function getRemovedIds()
37     {
38         return array(
39             'Psr\\Container\\ContainerInterface' => true,
40             'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
41         );
42     }
43
44     public function compile()
45     {
46         throw new LogicException('You cannot compile a dumped container that was already compiled.');
47     }
48
49     public function isCompiled()
50     {
51         return true;
52     }
53
54     public function isFrozen()
55     {
56         @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);
57
58         return true;
59     }
60
61     /**
62      * Gets the public 'tsantos_serializer' shared service.
63      *
64      * @return \TSantos\Serializer\EventEmitterSerializer
65      */
66     protected function getTsantosSerializerService()
67     {
68         $a = new \TSantos\Serializer\NormalizerRegistry();
69
70         $d = new \TSantos\Serializer\EventDispatcher\EventDispatcher();
71         $d->addSubscriber(new \TSantos\SerializerBundle\EventListener\StopwatchListener(new \Symfony\Component\Stopwatch\Stopwatch(true)));
72
73         $this->services['tsantos_serializer'] = $instance = new \TSantos\Serializer\EventEmitterSerializer(new \TSantos\Serializer\Encoder\JsonEncoder(), $a, $d);
74
75         $b = new \TSantos\Serializer\Normalizer\CollectionNormalizer();
76
77         $b->setSerializer($instance);
78
79         $c = new \TSantos\Serializer\Normalizer\JsonNormalizer();
80
81         $c->setSerializer($instance);
82
83         $a->add(new \TSantos\Serializer\Normalizer\ObjectNormalizer(new \TSantos\SerializerBundle\Serializer\CircularReferenceHandler()));
84         $a->add($b);
85         $a->add($c);
86
87         return $instance;
88     }
89 }