Symfony2无法导入资源(Symfony2 Unable to Import Resource)
当我安装供应商文件时,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.我的导入有什么问题?
Symfony application throws the following error when I install vendor 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?
最满意答案
您的paramteres.yml文件不是有效的YAML。 它应该是
database_driver: pdo_mysql不=签名
Your paramteres.yml file is not a valid YAML. It should be
database_driver: pdo_mysqlNot = sign
更多推荐
发布评论