mailpoet
/
vendor-prefixed
/
doctrine
/
orm
/
src
/
Cache
/
Exception
/
MetadataCacheUsesNonPersistentCache.php
CacheException.php
9 months ago
CannotUpdateReadOnlyCollection.php
9 months ago
CannotUpdateReadOnlyEntity.php
9 months ago
FeatureNotImplemented.php
9 months ago
InvalidResultCacheDriver.php
9 months ago
MetadataCacheNotConfigured.php
9 months ago
MetadataCacheUsesNonPersistentCache.php
9 months ago
NonCacheableEntity.php
9 months ago
NonCacheableEntityAssociation.php
9 months ago
QueryCacheNotConfigured.php
9 months ago
QueryCacheUsesNonPersistentCache.php
9 months ago
index.php
9 months ago
MetadataCacheUsesNonPersistentCache.php
14 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Cache\Exception; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use MailPoetVendor\Doctrine\Common\Cache\Cache; |
| 6 | use function get_debug_type; |
| 7 | final class MetadataCacheUsesNonPersistentCache extends CacheException |
| 8 | { |
| 9 | public static function fromDriver(Cache $cache) : self |
| 10 | { |
| 11 | return new self('Metadata Cache uses a non-persistent cache driver, ' . get_debug_type($cache) . '.'); |
| 12 | } |
| 13 | } |
| 14 |