当我安装供应商文件时,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.
我的导入有什么问题?
最佳答案
您的 paramteres.yml 文件不是有效的 YAML。应该是
database_driver: pdo_mysql
不是=
符号
关于php - Symfony2 无法导入资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14533470/