So, the above error has suddenly started happening, after I\'ve been using FOSUserBundle for several Symfony projects.
I\'ve tried including the templating service (
I just experienced the exact same problem. The funny thing is that I created a Symfony 3.3 project just before creating a Symfony 3.4 project and the Symfony 3.3 project didn't have this problem. So they must have removed the templating component for the 3.4 release.
To solve your problem, you will have to install the templating component using composer:
composer require symfony/templating
Then, add the following configuration under the framework
key in your config.yml:
templating:
engines: ['twig']
Update: I recently had to start a new Symfony 3.4 project with FOSUserBundle and discovered that I only had to add the above configuration to my config.yml file (as was mentioned in a comment below).