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.148.243.252
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
myadmin /
vendor /
symfony /
cache /
Traits /
Delete
Unzip
Name
Size
Permission
Date
Action
AbstractAdapterTrait.php
3.72
KB
-rw-r--r--
2021-02-05 18:32
AbstractTrait.php
9.12
KB
-rw-r--r--
2021-02-05 18:32
ApcuTrait.php
3.12
KB
-rw-r--r--
2021-02-05 18:32
ArrayTrait.php
4.81
KB
-rw-r--r--
2021-02-05 18:32
ContractsTrait.php
3.41
KB
-rw-r--r--
2021-02-05 18:32
DoctrineTrait.php
2.21
KB
-rw-r--r--
2021-02-05 18:32
FilesystemCommonTrait.php
4.96
KB
-rw-r--r--
2021-02-05 18:32
FilesystemTrait.php
2.93
KB
-rw-r--r--
2021-02-05 18:32
MemcachedTrait.php
12.73
KB
-rw-r--r--
2021-02-05 18:32
PdoTrait.php
19.77
KB
-rw-r--r--
2021-02-05 18:32
PhpArrayTrait.php
5.04
KB
-rw-r--r--
2021-02-05 18:32
PhpFilesTrait.php
9.08
KB
-rw-r--r--
2021-02-05 18:32
ProxyTrait.php
817
B
-rw-r--r--
2021-02-05 18:32
RedisClusterProxy.php
1.66
KB
-rw-r--r--
2021-02-05 18:32
RedisProxy.php
1.77
KB
-rw-r--r--
2021-02-05 18:32
RedisTrait.php
20.73
KB
-rw-r--r--
2021-02-05 18:32
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\Cache\Traits; use Psr\Log\LoggerInterface; use Symfony\Component\Cache\Adapter\AdapterInterface; use Symfony\Component\Cache\CacheItem; use Symfony\Component\Cache\Exception\InvalidArgumentException; use Symfony\Component\Cache\LockRegistry; use Symfony\Contracts\Cache\CacheInterface; use Symfony\Contracts\Cache\CacheTrait; use Symfony\Contracts\Cache\ItemInterface; /** * @author Nicolas Grekas <p@tchwork.com> * * @internal */ trait ContractsTrait { use CacheTrait { doGet as private contractsGet; } private $callbackWrapper = [LockRegistry::class, 'compute']; private $computing = []; /** * Wraps the callback passed to ->get() in a callable. * * @return callable the previous callback wrapper */ public function setCallbackWrapper(?callable $callbackWrapper): callable { $previousWrapper = $this->callbackWrapper; $this->callbackWrapper = $callbackWrapper ?? function (callable $callback, ItemInterface $item, bool &$save, CacheInterface $pool, \Closure $setMetadata, ?LoggerInterface $logger) { return $callback($item, $save); }; return $previousWrapper; } private function doGet(AdapterInterface $pool, string $key, callable $callback, ?float $beta, array &$metadata = null) { if (0 > $beta = $beta ?? 1.0) { throw new InvalidArgumentException(sprintf('Argument "$beta" provided to "%s::get()" must be a positive number, %f given.', static::class, $beta)); } static $setMetadata; $setMetadata = $setMetadata ?? \Closure::bind( static function (CacheItem $item, float $startTime, ?array &$metadata) { if ($item->expiry > $endTime = microtime(true)) { $item->newMetadata[CacheItem::METADATA_EXPIRY] = $metadata[CacheItem::METADATA_EXPIRY] = $item->expiry; $item->newMetadata[CacheItem::METADATA_CTIME] = $metadata[CacheItem::METADATA_CTIME] = (int) ceil(1000 * ($endTime - $startTime)); } else { unset($metadata[CacheItem::METADATA_EXPIRY], $metadata[CacheItem::METADATA_CTIME]); } }, null, CacheItem::class ); return $this->contractsGet($pool, $key, function (CacheItem $item, bool &$save) use ($pool, $callback, $setMetadata, &$metadata, $key) { // don't wrap nor save recursive calls if (isset($this->computing[$key])) { $value = $callback($item, $save); $save = false; return $value; } $this->computing[$key] = $key; $startTime = microtime(true); try { $value = ($this->callbackWrapper)($callback, $item, $save, $pool, function (CacheItem $item) use ($setMetadata, $startTime, &$metadata) { $setMetadata($item, $startTime, $metadata); }, $this->logger ?? null); $setMetadata($item, $startTime, $metadata); return $value; } finally { unset($this->computing[$key]); } }, $beta, $metadata, $this->logger ?? null); } }