Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony3 + Assetic : ParameterNotFoundException

I'm working on a Symfony 3.4 application. Assetic bundle wasn't installed, so I made :

$ composer require symfony/assetic-bundle

and add it in the appKernel.php :

    new Symfony\Bundle\AsseticBundle\AsseticBundle(),

It worked perfect. Then, in my app/config/config.yml, I added :

# app/config/config.yml
assetic:
    debug:          '%kernel.debug%'
    use_controller: '%kernel.debug%'
    filters:
        cssrewrite: ~

# ...

and now my front-end is no more available, this is the error displayed with app_dev.php :

enter image description here

ParameterNotFoundException You have requested a non-existent parameter "templating.engines".

Even if I remove the Assetic configuration out of the config.yml the error is here. I have been searching in all my *.yml files I do not find any property "templating.engines" .... any idea ?

like image 465
Paolito75 Avatar asked Dec 10 '25 16:12

Paolito75


1 Answers

Try adding the following in the config.yml

framework:
     ...
     templating:
            engines: ['twig']
like image 153
smavroud Avatar answered Dec 14 '25 01:12

smavroud



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!