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;
12 * This class has been auto-generated
13 * by the Symfony Dependency Injection Component.
15 * @final since Symfony 3.3
17 class ProjectServiceContainer extends Container
20 private $targetDirs = array();
22 public function __construct()
24 $this->services = array();
25 $this->normalizedIds = array(
26 'tsantos\\serializer\\serializerinterface' => 'TSantos\\Serializer\\SerializerInterface',
28 $this->methodMap = array(
29 'tsantos_serializer' => 'getTsantosSerializerService',
31 $this->aliases = array(
32 'TSantos\\Serializer\\SerializerInterface' => 'tsantos_serializer',
36 public function getRemovedIds()
39 'Psr\\Container\\ContainerInterface' => true,
40 'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
44 public function compile()
46 throw new LogicException('You cannot compile a dumped container that was already compiled.');
49 public function isCompiled()
54 public function isFrozen()
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);
62 * Gets the public 'tsantos_serializer' shared service.
64 * @return \TSantos\Serializer\EventEmitterSerializer
66 protected function getTsantosSerializerService()
68 $a = new \TSantos\Serializer\NormalizerRegistry();
70 $d = new \TSantos\Serializer\EventDispatcher\EventDispatcher();
71 $d->addSubscriber(new \TSantos\SerializerBundle\EventListener\StopwatchListener(new \Symfony\Component\Stopwatch\Stopwatch(true)));
73 $this->services['tsantos_serializer'] = $instance = new \TSantos\Serializer\EventEmitterSerializer(new \TSantos\Serializer\Encoder\JsonEncoder(), $a, $d);
75 $b = new \TSantos\Serializer\Normalizer\CollectionNormalizer();
77 $b->setSerializer($instance);
79 $c = new \TSantos\Serializer\Normalizer\JsonNormalizer();
81 $c->setSerializer($instance);
83 $a->add(new \TSantos\Serializer\Normalizer\ObjectNormalizer(new \TSantos\SerializerBundle\Serializer\CircularReferenceHandler()));