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 : 52.14.238.102
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp /
vendor /
symfony /
property-info /
Delete
Unzip
Name
Size
Permission
Date
Action
DependencyInjection
[ DIR ]
drwxr-xr-x
2020-12-11 09:00
Extractor
[ DIR ]
drwxr-xr-x
2020-12-11 09:00
Util
[ DIR ]
drwxr-xr-x
2020-12-11 09:00
CHANGELOG.md
711
B
-rw-r--r--
2020-12-11 09:00
LICENSE
1.04
KB
-rw-r--r--
2020-12-11 09:00
PropertyAccessExtractorInterface.php
775
B
-rw-r--r--
2020-12-11 09:00
PropertyDescriptionExtractorInterface.php
835
B
-rw-r--r--
2020-12-11 09:00
PropertyInfoCacheExtractor.php
3.46
KB
-rw-r--r--
2020-12-11 09:00
PropertyInfoExtractor.php
3.7
KB
-rw-r--r--
2020-12-11 09:00
PropertyInfoExtractorInterface.php
638
B
-rw-r--r--
2020-12-11 09:00
PropertyInitializableExtractorInterface.php
690
B
-rw-r--r--
2020-12-11 09:00
PropertyListExtractorInterface.php
638
B
-rw-r--r--
2020-12-11 09:00
PropertyReadInfo.php
1.68
KB
-rw-r--r--
2020-12-11 09:00
PropertyReadInfoExtractorInterface.php
632
B
-rw-r--r--
2020-12-11 09:00
PropertyTypeExtractorInterface.php
579
B
-rw-r--r--
2020-12-11 09:00
PropertyWriteInfo.php
3.09
KB
-rw-r--r--
2020-12-11 09:00
PropertyWriteInfoExtractorInterface.php
637
B
-rw-r--r--
2020-12-11 09:00
README.md
532
B
-rw-r--r--
2020-12-11 09:00
Type.php
3.16
KB
-rw-r--r--
2020-12-11 09:00
composer.json
1.59
KB
-rw-r--r--
2020-12-11 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\PropertyInfo; use Psr\Cache\CacheItemPoolInterface; /** * Adds a PSR-6 cache layer on top of an extractor. * * @author Kévin Dunglas <dunglas@gmail.com> * * @final */ class PropertyInfoCacheExtractor implements PropertyInfoExtractorInterface, PropertyInitializableExtractorInterface { private $propertyInfoExtractor; private $cacheItemPool; private $arrayCache = []; public function __construct(PropertyInfoExtractorInterface $propertyInfoExtractor, CacheItemPoolInterface $cacheItemPool) { $this->propertyInfoExtractor = $propertyInfoExtractor; $this->cacheItemPool = $cacheItemPool; } /** * {@inheritdoc} */ public function isReadable(string $class, string $property, array $context = []): ?bool { return $this->extract('isReadable', [$class, $property, $context]); } /** * {@inheritdoc} */ public function isWritable(string $class, string $property, array $context = []): ?bool { return $this->extract('isWritable', [$class, $property, $context]); } /** * {@inheritdoc} */ public function getShortDescription(string $class, string $property, array $context = []): ?string { return $this->extract('getShortDescription', [$class, $property, $context]); } /** * {@inheritdoc} */ public function getLongDescription(string $class, string $property, array $context = []): ?string { return $this->extract('getLongDescription', [$class, $property, $context]); } /** * {@inheritdoc} */ public function getProperties(string $class, array $context = []): ?array { return $this->extract('getProperties', [$class, $context]); } /** * {@inheritdoc} */ public function getTypes(string $class, string $property, array $context = []): ?array { return $this->extract('getTypes', [$class, $property, $context]); } /** * {@inheritdoc} */ public function isInitializable(string $class, string $property, array $context = []): ?bool { return $this->extract('isInitializable', [$class, $property, $context]); } /** * Retrieves the cached data if applicable or delegates to the decorated extractor. * * @return mixed */ private function extract(string $method, array $arguments) { try { $serializedArguments = serialize($arguments); } catch (\Exception $exception) { // If arguments are not serializable, skip the cache return $this->propertyInfoExtractor->{$method}(...$arguments); } // Calling rawurlencode escapes special characters not allowed in PSR-6's keys $key = rawurlencode($method.'.'.$serializedArguments); if (\array_key_exists($key, $this->arrayCache)) { return $this->arrayCache[$key]; } $item = $this->cacheItemPool->getItem($key); if ($item->isHit()) { return $this->arrayCache[$key] = $item->get(); } $value = $this->propertyInfoExtractor->{$method}(...$arguments); $item->set($value); $this->cacheItemPool->save($item); return $this->arrayCache[$key] = $value; } }