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 : 18.223.33.204
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
jms /
serializer /
src /
Handler /
Delete
Unzip
Name
Size
Permission
Date
Action
ArrayCollectionHandler.php
5.02
KB
-rw-rw-r--
2022-08-24 15:26
ConstraintViolationHandler.php
2.78
KB
-rw-rw-r--
2022-08-24 15:26
DateHandler.php
9.47
KB
-rw-rw-r--
2022-08-24 15:26
FormErrorHandler.php
5.34
KB
-rw-rw-r--
2022-08-24 15:26
HandlerRegistry.php
2.8
KB
-rw-rw-r--
2022-08-24 15:26
HandlerRegistryInterface.php
873
B
-rw-rw-r--
2022-08-24 15:26
IteratorHandler.php
3.57
KB
-rw-rw-r--
2022-08-24 15:26
LazyHandlerRegistry.php
2.1
KB
-rw-rw-r--
2022-08-24 15:26
StdClassHandler.php
1.52
KB
-rw-rw-r--
2022-08-24 15:26
SubscribingHandlerInterface.php
700
B
-rw-rw-r--
2022-08-24 15:26
SymfonyUidHandler.php
5.01
KB
-rw-rw-r--
2022-08-24 15:26
Save
Rename
<?php declare(strict_types=1); namespace JMS\Serializer\Handler; use JMS\Serializer\Exception\LogicException; use JMS\Serializer\Exception\RuntimeException; use JMS\Serializer\GraphNavigatorInterface; class HandlerRegistry implements HandlerRegistryInterface { /** * @var callable[] */ protected $handlers; public static function getDefaultMethod(int $direction, string $type, string $format): string { if (false !== $pos = strrpos($type, '\\')) { $type = substr($type, $pos + 1); } switch ($direction) { case GraphNavigatorInterface::DIRECTION_DESERIALIZATION: return 'deserialize' . $type . 'From' . $format; case GraphNavigatorInterface::DIRECTION_SERIALIZATION: return 'serialize' . $type . 'To' . $format; default: throw new LogicException(sprintf('The direction %s does not exist; see GraphNavigatorInterface::DIRECTION_??? constants.', json_encode($direction))); } } public function __construct(array $handlers = []) { $this->handlers = $handlers; } public function registerSubscribingHandler(SubscribingHandlerInterface $handler): void { foreach ($handler->getSubscribingMethods() as $methodData) { if (!isset($methodData['type'], $methodData['format'])) { throw new RuntimeException(sprintf('For each subscribing method a "type" and "format" attribute must be given, but only got "%s" for %s.', implode('" and "', array_keys($methodData)), \get_class($handler))); } $directions = [GraphNavigatorInterface::DIRECTION_DESERIALIZATION, GraphNavigatorInterface::DIRECTION_SERIALIZATION]; if (isset($methodData['direction'])) { $directions = [$methodData['direction']]; } foreach ($directions as $direction) { $method = $methodData['method'] ?? self::getDefaultMethod($direction, $methodData['type'], $methodData['format']); $this->registerHandler($direction, $methodData['type'], $methodData['format'], [$handler, $method]); } } } /** * {@inheritdoc} */ public function registerHandler(int $direction, string $typeName, string $format, $handler): void { $this->handlers[$direction][$typeName][$format] = $handler; } /** * {@inheritdoc} */ public function getHandler(int $direction, string $typeName, string $format) { if (!isset($this->handlers[$direction][$typeName][$format])) { return null; } return $this->handlers[$direction][$typeName][$format]; } /** * @internal Used for profiling */ public function getHandlers(): array { return $this->handlers; } }