3

当我安装供应商文件时,Symfony 应用程序抛出以下错误

[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.

我的导入有什么问题?

4

2 回答 2

7

您的 paramteres.yml 文件不是有效的 YAML。它应该是

database_driver: pdo_mysql

=

于 2013-01-26T03:43:27.343 回答
0

如果您无法使用cache:clear错误消息中的命令,您可以手动执行

sudo rm -rf app/cache/*

于 2013-01-26T06:52:27.230 回答