Files
LaLiga-BackEnd/vendor/doctrine/orm/src/Cache/Exception/MetadataCacheUsesNonPersistentCache.php
T
2024-05-18 02:28:01 +02:00

20 lines
416 B
PHP

<?php
declare(strict_types=1);
namespace Doctrine\ORM\Cache\Exception;
use Doctrine\Common\Cache\Cache;
use function get_debug_type;
final class MetadataCacheUsesNonPersistentCache extends CacheException
{
public static function fromDriver(Cache $cache): self
{
return new self(
'Metadata Cache uses a non-persistent cache driver, ' . get_debug_type($cache) . '.'
);
}
}