Symfony2无法导入资源(Symfony2 Unable to Import Resource)

编程入门 行业动态 更新时间:2024-10-25 11:18:48
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_mysql

Not = sign

更多推荐

本文发布于:2023-04-29 07:48:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1335962.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:资源   Unable   Resource   Import

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!