ヤミRoot VoidGate
User / IP
:
216.73.216.110
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
/
Serializer
/
Viewing: StopwatchEventSubscriber.php
<?php namespace JMS\SerializerBundle\Serializer; use JMS\Serializer\EventDispatcher\Events; use JMS\Serializer\EventDispatcher\EventSubscriberInterface; use JMS\Serializer\EventDispatcher\ObjectEvent; /** * @author Adrien Brault <adrien.brault@gmail.com> */ class StopwatchEventSubscriber implements EventSubscriberInterface { /** * {@inheritdoc} */ public static function getSubscribedEvents() { return array( array('event' => Events::PRE_SERIALIZE, 'method' => 'onPreSerialize', 'priority' => -1000), array('event' => Events::POST_SERIALIZE, 'method' => 'onPostSerialize', 'priority' => 1000), ); } /** * A stopwatch object which exposes a start($name) and a stop($name) method. * * @var object */ private $stopwatch; /** * @var object */ private $rootObject; public function __construct($stopwatch) { $this->stopwatch = $stopwatch; } public function onPreSerialize(ObjectEvent $event) { if ($event->getContext()->getDepth() > 1 || null !== $this->rootObject) { return; } $this->stopwatch->start('jms_serializer'); $this->rootObject = $event->getObject(); } public function onPostSerialize(ObjectEvent $event) { if (null === $this->rootObject || $event->getObject() !== $this->rootObject) { return; } $this->stopwatch->stop('jms_serializer'); $this->rootObject = null; } }
Coded With 💗 by
0x6ick