ヤミ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
/
friendsofsymfony
/
rest-bundle
/
Serializer
/
Normalizer
/
Viewing: ExceptionNormalizer.php
<?php /* * This file is part of the FOSRestBundle package. * * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FOS\RestBundle\Serializer\Normalizer; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; /** * Normalizes Exception instances. * * @author Ener-Getick <egetick@gmail.com> */ class ExceptionNormalizer extends AbstractExceptionNormalizer implements NormalizerInterface { /** * {@inheritdoc} */ public function normalize($object, $format = null, array $context = []) { $data = []; if (isset($context['template_data']['status_code'])) { $data['code'] = $statusCode = $context['template_data']['status_code']; } $data['message'] = $this->getExceptionMessage($object, isset($statusCode) ? $statusCode : null); return $data; } /** * {@inheritdoc} */ public function supportsNormalization($data, $format = null) { return $data instanceof \Exception; } }
Coded With 💗 by
0x6ick