diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-07-27 10:05:23 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-07-27 10:05:23 +0200 |
| commit | 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab (patch) | |
| tree | 39a1a4629749056191c05dfd899f931701b7acf3 /srcs/phpmyadmin/vendor/symfony/cache/Simple | |
| parent | 5afd237bbd22028b85532b8c0b3fcead49a00764 (diff) | |
| download | ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.tar.gz ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.tar.bz2 ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.zip | |
Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my famillyHEADmaster
Diffstat (limited to 'srcs/phpmyadmin/vendor/symfony/cache/Simple')
14 files changed, 0 insertions, 1551 deletions
diff --git a/srcs/phpmyadmin/vendor/symfony/cache/Simple/AbstractCache.php b/srcs/phpmyadmin/vendor/symfony/cache/Simple/AbstractCache.php deleted file mode 100644 index b3477e9..0000000 --- a/srcs/phpmyadmin/vendor/symfony/cache/Simple/AbstractCache.php +++ /dev/null @@ -1,199 +0,0 @@ -<?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\Simple; - -use Psr\Log\LoggerAwareInterface; -use Psr\SimpleCache\CacheInterface as Psr16CacheInterface; -use Symfony\Component\Cache\Adapter\AbstractAdapter; -use Symfony\Component\Cache\CacheItem; -use Symfony\Component\Cache\Exception\InvalidArgumentException; -use Symfony\Component\Cache\ResettableInterface; -use Symfony\Component\Cache\Traits\AbstractTrait; -use Symfony\Contracts\Cache\CacheInterface; - -@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" and type-hint for "%s" instead.', AbstractCache::class, AbstractAdapter::class, CacheInterface::class), E_USER_DEPRECATED); - -/** - * @deprecated since Symfony 4.3, use AbstractAdapter and type-hint for CacheInterface instead. - */ -abstract class AbstractCache implements Psr16CacheInterface, LoggerAwareInterface, ResettableInterface -{ - /** - * @internal - */ - protected const NS_SEPARATOR = ':'; - - use AbstractTrait { - deleteItems as private; - AbstractTrait::deleteItem as delete; - AbstractTrait::hasItem as has; - } - - private $defaultLifetime; - - protected function __construct(string $namespace = '', int $defaultLifetime = 0) - { - $this->defaultLifetime = max(0, $defaultLifetime); - $this->namespace = '' === $namespace ? '' : CacheItem::validateKey($namespace).':'; - if (null !== $this->maxIdLength && \strlen($namespace) > $this->maxIdLength - 24) { - throw new InvalidArgumentException(sprintf('Namespace must be %d chars max, %d given ("%s")', $this->maxIdLength - 24, \strlen($namespace), $namespace)); - } - } - - /** - * {@inheritdoc} - */ - public function get($key, $default = null) - { - $id = $this->getId($key); - - try { - foreach ($this->doFetch([$id]) as $value) { - return $value; - } - } catch (\Exception $e) { - CacheItem::log($this->logger, 'Failed to fetch key "{key}": '.$e->getMessage(), ['key' => $key, 'exception' => $e]); - } - - return $default; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function set($key, $value, $ttl = null) - { - CacheItem::validateKey($key); - - return $this->setMultiple([$key => $value], $ttl); - } - - /** - * {@inheritdoc} - * - * @return iterable - */ - public function getMultiple($keys, $default = null) - { - if ($keys instanceof \Traversable) { - $keys = iterator_to_array($keys, false); - } elseif (!\is_array($keys)) { - throw new InvalidArgumentException(sprintf('Cache keys must be array or Traversable, "%s" given', \is_object($keys) ? \get_class($keys) : \gettype($keys))); - } - $ids = []; - - foreach ($keys as $key) { - $ids[] = $this->getId($key); - } - try { - $values = $this->doFetch($ids); - } catch (\Exception $e) { - CacheItem::log($this->logger, 'Failed to fetch values: '.$e->getMessage(), ['keys' => $keys, 'exception' => $e]); - $values = []; - } - $ids = array_combine($ids, $keys); - - return $this->generateValues($values, $ids, $default); - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function setMultiple($values, $ttl = null) - { - if (!\is_array($values) && !$values instanceof \Traversable) { - throw new InvalidArgumentException(sprintf('Cache values must be array or Traversable, "%s" given', \is_object($values) ? \get_class($values) : \gettype($values))); - } - $valuesById = []; - - foreach ($values as $key => $value) { - if (\is_int($key)) { - $key = (string) $key; - } - $valuesById[$this->getId($key)] = $value; - } - if (false === $ttl = $this->normalizeTtl($ttl)) { - return $this->doDelete(array_keys($valuesById)); - } - - try { - $e = $this->doSave($valuesById, $ttl); - } catch (\Exception $e) { - } - if (true === $e || [] === $e) { - return true; - } - $keys = []; - foreach (\is_array($e) ? $e : array_keys($valuesById) as $id) { - $keys[] = substr($id, \strlen($this->namespace)); - } - $message = 'Failed to save values'.($e instanceof \Exception ? ': '.$e->getMessage() : '.'); - CacheItem::log($this->logger, $message, ['keys' => $keys, 'exception' => $e instanceof \Exception ? $e : null]); - - return false; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function deleteMultiple($keys) - { - if ($keys instanceof \Traversable) { - $keys = iterator_to_array($keys, false); - } elseif (!\is_array($keys)) { - throw new InvalidArgumentException(sprintf('Cache keys must be array or Traversable, "%s" given', \is_object($keys) ? \get_class($keys) : \gettype($keys))); - } - - return $this->deleteItems($keys); - } - - private function normalizeTtl($ttl) - { - if (null === $ttl) { - return $this->defaultLifetime; - } - if ($ttl instanceof \DateInterval) { - $ttl = (int) \DateTime::createFromFormat('U', 0)->add($ttl)->format('U'); - } - if (\is_int($ttl)) { - return 0 < $ttl ? $ttl : false; - } - - throw new InvalidArgumentException(sprintf('Expiration date must be an integer, a DateInterval or null, "%s" given', \is_object($ttl) ? \get_class($ttl) : \gettype($ttl))); - } - - private function generateValues(iterable $values, array &$keys, $default): iterable - { - try { - foreach ($values as $id => $value) { - if (!isset($keys[$id])) { - $id = key($keys); - } - $key = $keys[$id]; - unset($keys[$id]); - yield $key => $value; - } - } catch (\Exception $e) { - CacheItem::log($this->logger, 'Failed to fetch values: '.$e->getMessage(), ['keys' => array_values($keys), 'exception' => $e]); - } - - foreach ($keys as $key) { - yield $key => $default; - } - } -} diff --git a/srcs/phpmyadmin/vendor/symfony/cache/Simple/ApcuCache.php b/srcs/phpmyadmin/vendor/symfony/cache/Simple/ApcuCache.php deleted file mode 100644 index f1eb946..0000000 --- a/srcs/phpmyadmin/vendor/symfony/cache/Simple/ApcuCache.php +++ /dev/null @@ -1,31 +0,0 @@ -<?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\Simple; - -use Symfony\Component\Cache\Adapter\ApcuAdapter; -use Symfony\Component\Cache\Traits\ApcuTrait; -use Symfony\Contracts\Cache\CacheInterface; - -@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" and type-hint for "%s" instead.', ApcuCache::class, ApcuAdapter::class, CacheInterface::class), E_USER_DEPRECATED); - -/** - * @deprecated since Symfony 4.3, use ApcuAdapter and type-hint for CacheInterface instead. - */ -class ApcuCache extends AbstractCache -{ - use ApcuTrait; - - public function __construct(string $namespace = '', int $defaultLifetime = 0, string $version = null) - { - $this->init($namespace, $defaultLifetime, $version); - } -} diff --git a/srcs/phpmyadmin/vendor/symfony/cache/Simple/ArrayCache.php b/srcs/phpmyadmin/vendor/symfony/cache/Simple/ArrayCache.php deleted file mode 100644 index 7174825..0000000 --- a/srcs/phpmyadmin/vendor/symfony/cache/Simple/ArrayCache.php +++ /dev/null @@ -1,167 +0,0 @@ -<?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\Simple; - -use Psr\Log\LoggerAwareInterface; -use Psr\SimpleCache\CacheInterface as Psr16CacheInterface; -use Symfony\Component\Cache\Adapter\ArrayAdapter; -use Symfony\Component\Cache\CacheItem; -use Symfony\Component\Cache\Exception\InvalidArgumentException; -use Symfony\Component\Cache\ResettableInterface; -use Symfony\Component\Cache\Traits\ArrayTrait; -use Symfony\Contracts\Cache\CacheInterface; - -@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" and type-hint for "%s" instead.', ArrayCache::class, ArrayAdapter::class, CacheInterface::class), E_USER_DEPRECATED); - -/** - * @deprecated since Symfony 4.3, use ArrayAdapter and type-hint for CacheInterface instead. - */ -class ArrayCache implements Psr16CacheInterface, LoggerAwareInterface, ResettableInterface -{ - use ArrayTrait { - ArrayTrait::deleteItem as delete; - ArrayTrait::hasItem as has; - } - - private $defaultLifetime; - - /** - * @param bool $storeSerialized Disabling serialization can lead to cache corruptions when storing mutable values but increases performance otherwise - */ - public function __construct(int $defaultLifetime = 0, bool $storeSerialized = true) - { - $this->defaultLifetime = $defaultLifetime; - $this->storeSerialized = $storeSerialized; - } - - /** - * {@inheritdoc} - */ - public function get($key, $default = null) - { - if (!\is_string($key) || !isset($this->expiries[$key])) { - CacheItem::validateKey($key); - } - if (!$isHit = isset($this->expiries[$key]) && ($this->expiries[$key] > microtime(true) || !$this->delete($key))) { - $this->values[$key] = null; - - return $default; - } - if (!$this->storeSerialized) { - return $this->values[$key]; - } - $value = $this->unfreeze($key, $isHit); - - return $isHit ? $value : $default; - } - - /** - * {@inheritdoc} - * - * @return iterable - */ - public function getMultiple($keys, $default = null) - { - if ($keys instanceof \Traversable) { - $keys = iterator_to_array($keys, false); - } elseif (!\is_array($keys)) { - throw new InvalidArgumentException(sprintf('Cache keys must be array or Traversable, "%s" given', \is_object($keys) ? \get_class($keys) : \gettype($keys))); - } - foreach ($keys as $key) { - if (!\is_string($key) || !isset($this->expiries[$key])) { - CacheItem::validateKey($key); - } - } - - return $this->generateItems($keys, microtime(true), function ($k, $v, $hit) use ($default) { return $hit ? $v : $default; }); - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function deleteMultiple($keys) - { - if (!\is_array($keys) && !$keys instanceof \Traversable) { - throw new InvalidArgumentException(sprintf('Cache keys must be array or Traversable, "%s" given', \is_object($keys) ? \get_class($keys) : \gettype($keys))); - } - foreach ($keys as $key) { - $this->delete($key); - } - - return true; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function set($key, $value, $ttl = null) - { - if (!\is_string($key)) { - CacheItem::validateKey($key); - } - - return $this->setMultiple([$key => $value], $ttl); - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function setMultiple($values, $ttl = null) - { - if (!\is_array($values) && !$values instanceof \Traversable) { - throw new InvalidArgumentException(sprintf('Cache values must be array or Traversable, "%s" given', \is_object($values) ? \get_class($values) : \gettype($values))); - } - $valuesArray = []; - - foreach ($values as $key => $value) { - if (!\is_int($key) && !(\is_string($key) && isset($this->expiries[$key]))) { - CacheItem::validateKey($key); - } - $valuesArray[$key] = $value; - } - if (false === $ttl = $this->normalizeTtl($ttl)) { - return $this->deleteMultiple(array_keys($valuesArray)); - } - $expiry = 0 < $ttl ? microtime(true) + $ttl : PHP_INT_MAX; - - foreach ($valuesArray as $key => $value) { - if ($this->storeSerialized && null === $value = $this->freeze($value, $key)) { - return false; - } - $this->values[$key] = $value; - $this->expiries[$key] = $expiry; - } - - return true; - } - - private function normalizeTtl($ttl) - { - if (null === $ttl) { - return $this->defaultLifetime; - } - if ($ttl instanceof \DateInterval) { - $ttl = (int) \DateTime::createFromFormat('U', 0)->add($ttl)->format('U'); - } - if (\is_int($ttl)) { - return 0 < $ttl ? $ttl : false; - } - - throw new InvalidArgumentException(sprintf('Expiration date must be an integer, a DateInterval or null, "%s" given', \is_object($ttl) ? \get_class($ttl) : \gettype($ttl))); - } -} diff --git a/srcs/phpmyadmin/vendor/symfony/cache/Simple/ChainCache.php b/srcs/phpmyadmin/vendor/symfony/cache/Simple/ChainCache.php deleted file mode 100644 index 57a169f..0000000 --- a/srcs/phpmyadmin/vendor/symfony/cache/Simple/ChainCache.php +++ /dev/null @@ -1,271 +0,0 @@ -<?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\Simple; - -use Psr\SimpleCache\CacheInterface as Psr16CacheInterface; -use Symfony\Component\Cache\Adapter\ChainAdapter; -use Symfony\Component\Cache\Exception\InvalidArgumentException; -use Symfony\Component\Cache\PruneableInterface; -use Symfony\Component\Cache\ResettableInterface; -use Symfony\Contracts\Cache\CacheInterface; -use Symfony\Contracts\Service\ResetInterface; - -@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" and type-hint for "%s" instead.', ChainCache::class, ChainAdapter::class, CacheInterface::class), E_USER_DEPRECATED); - -/** - * Chains several caches together. - * - * Cached items are fetched from the first cache having them in its data store. - * They are saved and deleted in all caches at once. - * - * @deprecated since Symfony 4.3, use ChainAdapter and type-hint for CacheInterface instead. - */ -class ChainCache implements Psr16CacheInterface, PruneableInterface, ResettableInterface -{ - private $miss; - private $caches = []; - private $defaultLifetime; - private $cacheCount; - - /** - * @param Psr16CacheInterface[] $caches The ordered list of caches used to fetch cached items - * @param int $defaultLifetime The lifetime of items propagated from lower caches to upper ones - */ - public function __construct(array $caches, int $defaultLifetime = 0) - { - if (!$caches) { - throw new InvalidArgumentException('At least one cache must be specified.'); - } - - foreach ($caches as $cache) { - if (!$cache instanceof Psr16CacheInterface) { - throw new InvalidArgumentException(sprintf('The class "%s" does not implement the "%s" interface.', \get_class($cache), Psr16CacheInterface::class)); - } - } - - $this->miss = new \stdClass(); - $this->caches = array_values($caches); - $this->cacheCount = \count($this->caches); - $this->defaultLifetime = 0 < $defaultLifetime ? $defaultLifetime : null; - } - - /** - * {@inheritdoc} - */ - public function get($key, $default = null) - { - $miss = null !== $default && \is_object($default) ? $default : $this->miss; - - foreach ($this->caches as $i => $cache) { - $value = $cache->get($key, $miss); - - if ($miss !== $value) { - while (0 <= --$i) { - $this->caches[$i]->set($key, $value, $this->defaultLifetime); - } - - return $value; - } - } - - return $default; - } - - /** - * {@inheritdoc} - * - * @return iterable - */ - public function getMultiple($keys, $default = null) - { - $miss = null !== $default && \is_object($default) ? $default : $this->miss; - - return $this->generateItems($this->caches[0]->getMultiple($keys, $miss), 0, $miss, $default); - } - - private function generateItems(iterable $values, int $cacheIndex, $miss, $default): iterable - { - $missing = []; - $nextCacheIndex = $cacheIndex + 1; - $nextCache = isset($this->caches[$nextCacheIndex]) ? $this->caches[$nextCacheIndex] : null; - - foreach ($values as $k => $value) { - if ($miss !== $value) { - yield $k => $value; - } elseif (!$nextCache) { - yield $k => $default; - } else { - $missing[] = $k; - } - } - - if ($missing) { - $cache = $this->caches[$cacheIndex]; - $values = $this->generateItems($nextCache->getMultiple($missing, $miss), $nextCacheIndex, $miss, $default); - - foreach ($values as $k => $value) { - if ($miss !== $value) { - $cache->set($k, $value, $this->defaultLifetime); - yield $k => $value; - } else { - yield $k => $default; - } - } - } - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function has($key) - { - foreach ($this->caches as $cache) { - if ($cache->has($key)) { - return true; - } - } - - return false; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function clear() - { - $cleared = true; - $i = $this->cacheCount; - - while ($i--) { - $cleared = $this->caches[$i]->clear() && $cleared; - } - - return $cleared; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function delete($key) - { - $deleted = true; - $i = $this->cacheCount; - - while ($i--) { - $deleted = $this->caches[$i]->delete($key) && $deleted; - } - - return $deleted; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function deleteMultiple($keys) - { - if ($keys instanceof \Traversable) { - $keys = iterator_to_array($keys, false); - } - $deleted = true; - $i = $this->cacheCount; - - while ($i--) { - $deleted = $this->caches[$i]->deleteMultiple($keys) && $deleted; - } - - return $deleted; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function set($key, $value, $ttl = null) - { - $saved = true; - $i = $this->cacheCount; - - while ($i--) { - $saved = $this->caches[$i]->set($key, $value, $ttl) && $saved; - } - - return $saved; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function setMultiple($values, $ttl = null) - { - if ($values instanceof \Traversable) { - $valuesIterator = $values; - $values = function () use ($valuesIterator, &$values) { - $generatedValues = []; - - foreach ($valuesIterator as $key => $value) { - yield $key => $value; - $generatedValues[$key] = $value; - } - - $values = $generatedValues; - }; - $values = $values(); - } - $saved = true; - $i = $this->cacheCount; - - while ($i--) { - $saved = $this->caches[$i]->setMultiple($values, $ttl) && $saved; - } - - return $saved; - } - - /** - * {@inheritdoc} - */ - public function prune() - { - $pruned = true; - - foreach ($this->caches as $cache) { - if ($cache instanceof PruneableInterface) { - $pruned = $cache->prune() && $pruned; - } - } - - return $pruned; - } - - /** - * {@inheritdoc} - */ - public function reset() - { - foreach ($this->caches as $cache) { - if ($cache instanceof ResetInterface) { - $cache->reset(); - } - } - } -} diff --git a/srcs/phpmyadmin/vendor/symfony/cache/Simple/DoctrineCache.php b/srcs/phpmyadmin/vendor/symfony/cache/Simple/DoctrineCache.php deleted file mode 100644 index 6a6d003..0000000 --- a/srcs/phpmyadmin/vendor/symfony/cache/Simple/DoctrineCache.php +++ /dev/null @@ -1,34 +0,0 @@ -<?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\Simple; - -use Doctrine\Common\Cache\CacheProvider; -use Symfony\Component\Cache\Adapter\DoctrineAdapter; -use Symfony\Component\Cache\Traits\DoctrineTrait; -use Symfony\Contracts\Cache\CacheInterface; - -@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" and type-hint for "%s" instead.', DoctrineCache::class, DoctrineAdapter::class, CacheInterface::class), E_USER_DEPRECATED); - -/** - * @deprecated since Symfony 4.3, use DoctrineAdapter and type-hint for CacheInterface instead. - */ -class DoctrineCache extends AbstractCache -{ - use DoctrineTrait; - - public function __construct(CacheProvider $provider, string $namespace = '', int $defaultLifetime = 0) - { - parent::__construct('', $defaultLifetime); - $this->provider = $provider; - $provider->setNamespace($namespace); - } -} diff --git a/srcs/phpmyadmin/vendor/symfony/cache/Simple/FilesystemCache.php b/srcs/phpmyadmin/vendor/symfony/cache/Simple/FilesystemCache.php deleted file mode 100644 index 8891abd..0000000 --- a/srcs/phpmyadmin/vendor/symfony/cache/Simple/FilesystemCache.php +++ /dev/null @@ -1,36 +0,0 @@ -<?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\Simple; - -use Symfony\Component\Cache\Adapter\FilesystemAdapter; -use Symfony\Component\Cache\Marshaller\DefaultMarshaller; -use Symfony\Component\Cache\Marshaller\MarshallerInterface; -use Symfony\Component\Cache\PruneableInterface; -use Symfony\Component\Cache\Traits\FilesystemTrait; -use Symfony\Contracts\Cache\CacheInterface; - -@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" and type-hint for "%s" instead.', FilesystemCache::class, FilesystemAdapter::class, CacheInterface::class), E_USER_DEPRECATED); - -/** - * @deprecated since Symfony 4.3, use FilesystemAdapter and type-hint for CacheInterface instead. - */ -class FilesystemCache extends AbstractCache implements PruneableInterface -{ - use FilesystemTrait; - - public function __construct(string $namespace = '', int $defaultLifetime = 0, string $directory = null, MarshallerInterface $marshaller = null) - { - $this->marshaller = $marshaller ?? new DefaultMarshaller(); - parent::__construct('', $defaultLifetime); - $this->init($namespace, $directory); - } -} diff --git a/srcs/phpmyadmin/vendor/symfony/cache/Simple/MemcachedCache.php b/srcs/phpmyadmin/vendor/symfony/cache/Simple/MemcachedCache.php deleted file mode 100644 index e193411..0000000 --- a/srcs/phpmyadmin/vendor/symfony/cache/Simple/MemcachedCache.php +++ /dev/null @@ -1,34 +0,0 @@ -<?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\Simple; - -use Symfony\Component\Cache\Adapter\MemcachedAdapter; -use Symfony\Component\Cache\Marshaller\MarshallerInterface; -use Symfony\Component\Cache\Traits\MemcachedTrait; -use Symfony\Contracts\Cache\CacheInterface; - -@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" and type-hint for "%s" instead.', MemcachedCache::class, MemcachedAdapter::class, CacheInterface::class), E_USER_DEPRECATED); - -/** - * @deprecated since Symfony 4.3, use MemcachedAdapter and type-hint for CacheInterface instead. - */ -class MemcachedCache extends AbstractCache -{ - use MemcachedTrait; - - protected $maxIdLength = 250; - - public function __construct(\Memcached $client, string $namespace = '', int $defaultLifetime = 0, MarshallerInterface $marshaller = null) - { - $this->init($client, $namespace, $defaultLifetime, $marshaller); - } -} diff --git a/srcs/phpmyadmin/vendor/symfony/cache/Simple/NullCache.php b/srcs/phpmyadmin/vendor/symfony/cache/Simple/NullCache.php deleted file mode 100644 index 35600fc..0000000 --- a/srcs/phpmyadmin/vendor/symfony/cache/Simple/NullCache.php +++ /dev/null @@ -1,104 +0,0 @@ -<?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\Simple; - -use Psr\SimpleCache\CacheInterface as Psr16CacheInterface; -use Symfony\Component\Cache\Adapter\NullAdapter; -use Symfony\Contracts\Cache\CacheInterface; - -@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.3, use "%s" and type-hint for "%s" instead.', NullCache::class, NullAdapter::class, CacheInterface::class), E_USER_DEPRECATED); - -/** - * @deprecated since Symfony 4.3, use NullAdapter and type-hint for CacheInterface instead. - */ -class NullCache implements Psr16CacheInterface -{ - /** - * {@inheritdoc} - */ - public function get($key, $default = null) - { - return $default; - } - - /** - * {@inheritdoc} - * - * @return iterable - */ - public function getMultiple($keys, $default = null) - { - foreach ($keys as $key) { - yield $key => $default; - } - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function has($key) - { - return false; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function clear() - { - return true; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function delete($key) - { - return true; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function deleteMultiple($keys) - { - return true; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function set($key, $value, $ttl = null) - { - return false; - } - - /** - * {@inheritdoc} - * - * @return bool - */ - public function setMultiple($values, $ttl = null) - { - return false; - } -} diff --git a/srcs/phpmyadmin/vendor/symfony/cache/Simple/PdoCache.php b/srcs/phpmyadmin/vendor/symfony/cache/Simple/PdoCache.php deleted file mode 100644 index 07849e9..0000000 --- a/srcs/phpmyadmin/vendor/symfony/cache/Simple/PdoCache.php +++ /dev/null @@ -1,59 +0,0 @@ -<?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\Simple; - -use Symfony\Component\Cache\Adapter\PdoAdapter; |
