-
Notifications
You must be signed in to change notification settings - Fork 378
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
Fix deprecated twig filter syntax #631
Conversation
It is not available since 1.0, right? So we have to raised a minimum twig version, Which one should it be? |
@@ -27,7 +27,7 @@ public function __construct(CacheManager $cacheManager) | |||
public function getFilters() | |||
{ | |||
return array( | |||
'imagine_filter' => new \Twig_Filter_Method($this, 'filter'), | |||
new \Twig_SimpleFunction('imagine_filter', array($this, 'filter')), |
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.
this is wrong. Should be \Twig_SimpleFilter
instead
@makasim it is available since |
@Koc thanks, @Rattler3 Could you update a twig section in composer json, saying that |
@makasim I left twig requiring less than version 2 as this has not yet been released and could require more amends. |
@Rattler3 I meant the description of suggest section https://github.com/liip/LiipImagineBundle/pull/631/files#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780L45 |
@makasim I have added a note about the version needing to be greater than 1.12 |
Fix deprecated twig filter syntax
Thanks |
With the release of Twig 1.21, deprecated calls in twig are being logged. Noticed this one.