Skip to content
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

Problem with installed version of Twig 3.0 #80

Open
garethfoxtrot opened this issue Aug 1, 2020 · 3 comments
Open

Problem with installed version of Twig 3.0 #80

garethfoxtrot opened this issue Aug 1, 2020 · 3 comments

Comments

@garethfoxtrot
Copy link

I'm trying install notification bundle on Symfony 4.4 with Twig 3.0.4 but problem is following: "Argument 3 passed to Mgilet\NotificationBundle\Twig\NotificationExtension::__construct() must be an instance of Twig_Environment".

I found the solution in construct we need change "\Twig_Environment $twig" on "\Twig\Environment $twig", because \Twig_Environment is deprecated.

"Using the "Twig_Environment" class is deprecated since Twig version 2.7, use "Twig\Environment" instead."

@maximilienGilet
Copy link
Owner

Hi @garethfoxtrot, could you submit a PR for this change ? Thanks in advance

@thinkawitch
Copy link
Contributor

I've added PR here #83

@garethfoxtrot
Copy link
Author

garethfoxtrot commented Apr 16, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants