尝试从以下链接安装FOSUserBundle捆绑包如何安装 3rd 方捆绑包但收到此错误:
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
The child node "db_driver" at path "fos_user" must be configured.
尝试从以下链接安装FOSUserBundle捆绑包如何安装 3rd 方捆绑包但收到此错误:
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
The child node "db_driver" at path "fos_user" must be configured.
您忘记在您的中添加 FOSUserBundle 的配置,app/config/config.yml
或者至少没有为fos_user.db_driver
.
您必须至少配置 db_driver 、防火墙和您的用户类,否则配置将抛出InvalidConfigurationException
.
# app/config/config.yml
fos_user:
db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
firewall_name: main
user_class: Acme\UserBundle\Entity\User
请参阅文档章节第 5 步:配置 FOSUserBundle。
我通过更新作曲家解决了类似的错误:/usr/local/bin/composer self-update
。愿这有帮助。