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 に答える