suncat2000 / MobileDetectBundle

Symfony 2/3/4 bundle for detect mobile devices, manage mobile view and redirect to the mobile and tablet version.
397 stars 153 forks source link

require a compatible Twig version #112

Closed xabbuh closed 7 years ago

xabbuh commented 7 years ago

since the removal of the getName() method in #111 the bundle requires Twig version 1.26 or higher

fdespier commented 7 years ago

Hello @xabbuh , getName() is an abstract method in Twig 1.23.

Which release of symfony do you use ?

xabbuh commented 7 years ago

The point is before twigphp/Twig#2148 which was first part of Twig 1.26 the base \Twig_Extension class did not implement the getName() method of the Twig_ExtensionInterface. Thus, using this bundle with a Twig version older than 1.26 would produce errors about a missing implementation of the getName() method.