-
Notifications
You must be signed in to change notification settings - Fork 380
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
[1.0][CacheResolver] Use binary on store method call. #301
Conversation
@havvg ready for review |
|
||
return $response; | ||
//TODO: throw exception here ??? |
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.
Yes, an exception should be thrown here, what about a Liip\ImagineBundle\Exception\Imagine\Cache\Resolver\StoreBinaryException
?
In regards to making this an error state that is not handled by the resolver itself anymore, the log entry should be error
instead of warning
(same applies to AwsS3Resolver
).
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.
I want to find a shorter exception name\namespace. Thinking....
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.
The sub-namespace in Liip\ImagineBundle\Exception
is derived from the actual namespace of the resolvers. However I'm open to a better concept :)
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.
@havvg what about Liip\ImagineBundle\Exception\Imagine\Cache\Resolver\NotStorableException
like we have NotResolableException
?
@havvg I fixed your comments, new changes:
|
|
||
use Liip\ImagineBundle\Exception\ExceptionInterface; | ||
|
||
class NotStorableException extends \RuntimeException implements ExceptionInterface |
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.
+1 :)
@havvg fix |
The changes on the |
Ah, I missed that one. However it's not required as it, but an optional dependency when using either of the S3 resolvers, so let's move it to |
@havvg I decided to revert |
[1.0][CacheResolver] Use binary on store method call.
Annnnd finally we decouple the bundle logic from http response\request.