Open magedan opened 3 years ago
Hello,
I was trying to upgrade my project to Twig 3 and got following error:
Attempted to load class "Twig_Extension" from the global namespace. Did you forget a "use" statement?
vendor/lexxpavlov/settingsbundle/Twig/SettingsExtension.php:
namespace Lexxpavlov\SettingsBundle\Twig; use Lexxpavlov\SettingsBundle\Service\Settings; class SettingsExtension extends \Twig_Extension { /** @var Settings */ private $settings; /**
Twig_Extension is deprecated since Twig version 2.7, it is required to use "Twig\Extension\AbstractExtension" instead in Twig 3.
It looks like we have two ways to deal with this situation:
What would you suggest @lexxpavlov?
Hello,
I was trying to upgrade my project to Twig 3 and got following error:
vendor/lexxpavlov/settingsbundle/Twig/SettingsExtension.php:
Twig_Extension is deprecated since Twig version 2.7, it is required to use "Twig\Extension\AbstractExtension" instead in Twig 3.
It looks like we have two ways to deal with this situation:
What would you suggest @lexxpavlov?