Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.144.132.48
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
symfony /
http-kernel /
EventListener /
Delete
Unzip
Name
Size
Permission
Date
Action
AbstractSessionListener.php
6.16
KB
-rw-r--r--
2018-11-30 09:00
AbstractTestSessionListener.php
3.58
KB
-rw-r--r--
2018-11-30 09:00
AddRequestFormatsListener.php
1.19
KB
-rw-r--r--
2018-11-30 09:00
DebugHandlersListener.php
6.21
KB
-rw-r--r--
2018-11-30 09:00
DumpListener.php
1.73
KB
-rw-r--r--
2018-11-30 09:00
ExceptionListener.php
5.73
KB
-rw-r--r--
2018-11-30 09:00
FragmentListener.php
3.17
KB
-rw-r--r--
2018-11-30 09:00
LocaleListener.php
2.6
KB
-rw-r--r--
2018-11-30 09:00
ProfilerListener.php
4.31
KB
-rw-r--r--
2018-11-30 09:00
ResponseListener.php
1.3
KB
-rw-r--r--
2018-11-30 09:00
RouterListener.php
7.04
KB
-rw-r--r--
2018-11-30 09:00
SaveSessionListener.php
1.32
KB
-rw-r--r--
2018-11-30 09:00
SessionListener.php
1.37
KB
-rw-r--r--
2018-11-30 09:00
StreamedResponseListener.php
1.21
KB
-rw-r--r--
2018-11-30 09:00
SurrogateListener.php
1.75
KB
-rw-r--r--
2018-11-30 09:00
TestSessionListener.php
903
B
-rw-r--r--
2018-11-30 09:00
TranslatorListener.php
2.47
KB
-rw-r--r--
2018-11-30 09:00
ValidateRequestListener.php
1.18
KB
-rw-r--r--
2018-11-30 09:00
Save
Rename
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\EventListener; use Psr\Log\LoggerInterface; use Symfony\Component\Debug\Exception\FlattenException; use Symfony\Component\Debug\ExceptionHandler; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\HttpKernel\Log\DebugLoggerInterface; /** * ExceptionListener. * * @author Fabien Potencier <fabien@symfony.com> */ class ExceptionListener implements EventSubscriberInterface { protected $controller; protected $logger; protected $debug; private $charset; private $fileLinkFormat; private $isTerminating = false; public function __construct($controller, LoggerInterface $logger = null, $debug = false, string $charset = null, $fileLinkFormat = null) { $this->controller = $controller; $this->logger = $logger; $this->debug = $debug; $this->charset = $charset; $this->fileLinkFormat = $fileLinkFormat; } public function logKernelException(GetResponseForExceptionEvent $event) { $e = FlattenException::create($event->getException()); $this->logException($event->getException(), sprintf('Uncaught PHP Exception %s: "%s" at %s line %s', $e->getClass(), $e->getMessage(), $e->getFile(), $e->getLine())); } public function onKernelException(GetResponseForExceptionEvent $event) { if (null === $this->controller) { if (!$event->isMasterRequest()) { return; } if (!$this->isTerminating) { $this->isTerminating = true; return; } $this->isTerminating = false; } $exception = $event->getException(); $request = $this->duplicateRequest($exception, $event->getRequest()); $eventDispatcher = \func_num_args() > 2 ? func_get_arg(2) : null; try { $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false); } catch (\Exception $e) { $f = FlattenException::create($e); $this->logException($e, sprintf('Exception thrown when handling an exception (%s: %s at %s line %s)', $f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine())); $wrapper = $e; while ($prev = $wrapper->getPrevious()) { if ($exception === $wrapper = $prev) { throw $e; } } $prev = new \ReflectionProperty($wrapper instanceof \Exception ? \Exception::class : \Error::class, 'previous'); $prev->setAccessible(true); $prev->setValue($wrapper, $exception); throw $e; } $event->setResponse($response); if ($this->debug && $eventDispatcher instanceof EventDispatcherInterface) { $cspRemovalListener = function (FilterResponseEvent $event) use (&$cspRemovalListener, $eventDispatcher) { $event->getResponse()->headers->remove('Content-Security-Policy'); $eventDispatcher->removeListener(KernelEvents::RESPONSE, $cspRemovalListener); }; $eventDispatcher->addListener(KernelEvents::RESPONSE, $cspRemovalListener, -128); } } public function reset() { $this->isTerminating = false; } public static function getSubscribedEvents() { return array( KernelEvents::EXCEPTION => array( array('logKernelException', 0), array('onKernelException', -128), ), ); } /** * Logs an exception. * * @param \Exception $exception The \Exception instance * @param string $message The error message to log */ protected function logException(\Exception $exception, $message) { if (null !== $this->logger) { if (!$exception instanceof HttpExceptionInterface || $exception->getStatusCode() >= 500) { $this->logger->critical($message, array('exception' => $exception)); } else { $this->logger->error($message, array('exception' => $exception)); } } } /** * Clones the request for the exception. * * @param \Exception $exception The thrown exception * @param Request $request The original request * * @return Request The cloned request */ protected function duplicateRequest(\Exception $exception, Request $request) { $attributes = array( 'exception' => $exception = FlattenException::create($exception), '_controller' => $this->controller ?: function () use ($exception) { $handler = new ExceptionHandler($this->debug, $this->charset, $this->fileLinkFormat); return new Response($handler->getHtml($exception), $exception->getStatusCode(), $exception->getHeaders()); }, 'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null, ); $request = $request->duplicate(null, null, $attributes); $request->setMethod('GET'); return $request; } }