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.222.227.24
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 /
Delete
Unzip
Name
Size
Permission
Date
Action
Accessor
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Annotation
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Builder
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Construction
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
ContextFactory
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
EventDispatcher
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Exception
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Exclusion
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Expression
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
GraphNavigator
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Handler
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Metadata
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Naming
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Ordering
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Twig
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Type
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
Visitor
[ DIR ]
drwxrwxr-x
2022-08-24 15:26
AbstractVisitor.php
2.98
KB
-rw-rw-r--
2022-08-24 15:26
ArrayTransformerInterface.php
917
B
-rw-rw-r--
2022-08-24 15:26
Context.php
6.08
KB
-rw-rw-r--
2022-08-24 15:26
DeserializationContext.php
775
B
-rw-rw-r--
2022-08-24 15:26
Functions.php
414
B
-rw-rw-r--
2022-08-24 15:26
GraphNavigator.php
1.05
KB
-rw-rw-r--
2022-08-24 15:26
GraphNavigatorInterface.php
1018
B
-rw-rw-r--
2022-08-24 15:26
JsonDeserializationStrictVisitor.php
3.99
KB
-rw-rw-r--
2022-08-24 15:26
JsonDeserializationVisitor.php
6.43
KB
-rw-rw-r--
2022-08-24 15:26
JsonSerializationVisitor.php
5.02
KB
-rw-rw-r--
2022-08-24 15:26
NullAwareVisitorInterface.php
346
B
-rw-rw-r--
2022-08-24 15:26
SerializationContext.php
3.44
KB
-rw-rw-r--
2022-08-24 15:26
Serializer.php
8.78
KB
-rw-rw-r--
2022-08-24 15:26
SerializerBuilder.php
19.95
KB
-rw-rw-r--
2022-08-24 15:26
SerializerInterface.php
768
B
-rw-rw-r--
2022-08-24 15:26
VisitorInterface.php
938
B
-rw-rw-r--
2022-08-24 15:26
XmlDeserializationVisitor.php
15.94
KB
-rw-rw-r--
2022-08-24 15:26
XmlSerializationVisitor.php
16.18
KB
-rw-rw-r--
2022-08-24 15:26
Save
Rename
<?php declare(strict_types=1); namespace JMS\Serializer; use JMS\Serializer\Exception\LogicException; use JMS\Serializer\Exception\RuntimeException; use JMS\Serializer\Exclusion\DepthExclusionStrategy; use JMS\Serializer\Exclusion\DisjunctExclusionStrategy; use JMS\Serializer\Exclusion\ExclusionStrategyInterface; use JMS\Serializer\Exclusion\GroupsExclusionStrategy; use JMS\Serializer\Exclusion\VersionExclusionStrategy; use JMS\Serializer\Metadata\ClassMetadata; use JMS\Serializer\Metadata\PropertyMetadata; use Metadata\MetadataFactory; use Metadata\MetadataFactoryInterface; abstract class Context { /** * @var array */ private $attributes = []; /** * @var string */ private $format; /** * @var VisitorInterface */ private $visitor; /** * @var GraphNavigatorInterface */ private $navigator; /** * @var MetadataFactory */ private $metadataFactory; /** @var DisjunctExclusionStrategy */ private $exclusionStrategy; /** * @var bool */ private $initialized = false; /** @var \SplStack */ private $metadataStack; public function __construct() { $this->metadataStack = new \SplStack(); } public function initialize(string $format, VisitorInterface $visitor, GraphNavigatorInterface $navigator, MetadataFactoryInterface $factory): void { if ($this->initialized) { throw new LogicException('This context was already initialized, and cannot be re-used.'); } $this->format = $format; $this->visitor = $visitor; $this->navigator = $navigator; $this->metadataFactory = $factory; $this->metadataStack = new \SplStack(); if (isset($this->attributes['groups'])) { $this->addExclusionStrategy(new GroupsExclusionStrategy($this->attributes['groups'])); } if (isset($this->attributes['version'])) { $this->addExclusionStrategy(new VersionExclusionStrategy($this->attributes['version'])); } if (!empty($this->attributes['max_depth_checks'])) { $this->addExclusionStrategy(new DepthExclusionStrategy()); } $this->initialized = true; } public function getMetadataFactory(): MetadataFactoryInterface { return $this->metadataFactory; } public function getVisitor(): VisitorInterface { return $this->visitor; } public function getNavigator(): GraphNavigatorInterface { return $this->navigator; } public function getExclusionStrategy(): ?ExclusionStrategyInterface { return $this->exclusionStrategy; } /** * @return mixed */ public function getAttribute(string $key) { return $this->attributes[$key]; } public function hasAttribute(string $key): bool { return isset($this->attributes[$key]); } /** * @param mixed $value * * @return $this */ public function setAttribute(string $key, $value): self { $this->assertMutable(); $this->attributes[$key] = $value; return $this; } final protected function assertMutable(): void { if (!$this->initialized) { return; } throw new LogicException('This context was already initialized and is immutable; you cannot modify it anymore.'); } /** * @return $this */ public function addExclusionStrategy(ExclusionStrategyInterface $strategy): self { $this->assertMutable(); if (null === $this->exclusionStrategy) { $this->exclusionStrategy = $strategy; return $this; } if ($this->exclusionStrategy instanceof DisjunctExclusionStrategy) { $this->exclusionStrategy->addStrategy($strategy); return $this; } $this->exclusionStrategy = new DisjunctExclusionStrategy([ $this->exclusionStrategy, $strategy, ]); return $this; } /** * @return $this */ public function setVersion(string $version): self { $this->attributes['version'] = $version; return $this; } /** * @param array|string $groups * * @return $this */ public function setGroups($groups): self { if (empty($groups)) { throw new LogicException('The groups must not be empty.'); } $this->attributes['groups'] = (array) $groups; return $this; } /** * @return $this */ public function enableMaxDepthChecks(): self { $this->attributes['max_depth_checks'] = true; return $this; } public function getFormat(): string { return $this->format; } public function pushClassMetadata(ClassMetadata $metadata): void { $this->metadataStack->push($metadata); } public function pushPropertyMetadata(PropertyMetadata $metadata): void { $this->metadataStack->push($metadata); } public function popPropertyMetadata(): void { $metadata = $this->metadataStack->pop(); if (!$metadata instanceof PropertyMetadata) { throw new RuntimeException('Context metadataStack not working well'); } } public function popClassMetadata(): void { $metadata = $this->metadataStack->pop(); if (!$metadata instanceof ClassMetadata) { throw new RuntimeException('Context metadataStack not working well'); } } public function getMetadataStack(): \SplStack { return $this->metadataStack; } /** * @return array */ public function getCurrentPath(): array { if (!$this->metadataStack) { return []; } $paths = []; foreach ($this->metadataStack as $metadata) { if ($metadata instanceof PropertyMetadata) { array_unshift($paths, $metadata->name); } } return $paths; } abstract public function getDepth(): int; abstract public function getDirection(): int; }