You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i try to use imagine with an Image document, i get
Parameter "path" for route "_imagine_my_filter" must match ".+" ("" given)
to generate a corresponding URL
it works if i add a __toString method to the image that returns $this->id. it seems like LiipImagineBundle is not expecting to be passed an object but only a path to an object. can we make that work? things go wrong inside CacheManager / WebPathResolver. could we use a different path resolver?
workaround: if i pass in the id instead of the Image document, things work so at least there is a workaround.
The text was updated successfully, but these errors were encountered:
right now the parameter to the imagine filter is called $path and expected to be a string. maybe there is a way to extend WebPathResolver to a ImageOrWebPathResolver and configure LiipImagineBundle to use that.
anyway, its not a 1.0 critical thing, as passing image.id is a working solution.
when i try to use imagine with an Image document, i get
it works if i add a
__toString
method to the image that returns$this->id
. it seems like LiipImagineBundle is not expecting to be passed an object but only a path to an object. can we make that work? things go wrong inside CacheManager / WebPathResolver. could we use a different path resolver?workaround: if i pass in the id instead of the Image document, things work so at least there is a workaround.
The text was updated successfully, but these errors were encountered: