Symfony2 failed to import resources

Symfony application throws the following error when installing provider files

[Symfony\Component\Config\Exception\FileLoaderLoadException]                          
Cannot import resource "/var/www/test/app/config/parameters.yml" from "/var  
/www/test/app/config/config.yml".                                            


[Symfony\Component\Yaml\Exception\ParseException]                                     
Unable to parse in "\/var\/www\/test\/app\/config\/parameters.yml" at line   
2 (near "database_driver   = pdo_mysql").

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception      


[RuntimeException]                                                         
An error occurred when executing the "'cache:clear --no-warmup'" command.

      

What's wrong with my import?

+3


source to share


2 answers


Your paramteres.yml file is not valid YAML. It should be

database_driver: pdo_mysql

      



No =

sign

+7


source


If you cannot use the command cache:clear

as in the error message, you can do it manually



sudo rm -rf app/cache/*

0


source







All Articles