安装供应商文件时,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.
Run Code Online (Sandbox Code Playgroud)
我的导入有什么问题?
您的paramteres.yml文件不是有效的YAML.它应该是
database_driver: pdo_mysql
Run Code Online (Sandbox Code Playgroud)
不=
签