-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for Doctrine\Cache 1.7 with deleteMultiple #22
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,26 +8,11 @@ | |
|
||
final class CacheException extends \RuntimeException implements PsrCacheException | ||
{ | ||
public static function fromNonClearableCache(DoctrineCache $cache) : self | ||
public static function fromNonMultiOperationCache(DoctrineCache $cache) : self | ||
{ | ||
return new self(sprintf( | ||
'The given cache %s was not clearable, but you tried to use a feature that requires a clearable cache.', | ||
get_class($cache) | ||
)); | ||
} | ||
|
||
public static function fromNonMultiGetCache(DoctrineCache $cache) : self | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor BC break: requires |
||
{ | ||
return new self(sprintf( | ||
'The given cache %s cannot multi-get, but you tried to use a feature that requires a multi-get cache.', | ||
get_class($cache) | ||
)); | ||
} | ||
|
||
public static function fromNonMultiPutCache(DoctrineCache $cache) : self | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor BC break: requires |
||
{ | ||
return new self(sprintf( | ||
'The given cache %s cannot multi-put, but you tried to use a feature that requires a multi-put cache.', | ||
'The given cache %s does not support multiple operations, ' | ||
. 'but you tried to use a feature that requires a multi-operation cache.', | ||
get_class($cache) | ||
)); | ||
} | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor BC break: requires
UPGRADE.md
notes or revert + deprecationThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fromNonClearableCache
shouldn't have gone, oops. Added that back in :)