gpt4 book ai didi

php - Symfony FOS 用户包初始化

转载 作者:IT王子 更新时间:2023-10-29 00:00:08 26 4
gpt4 key购买 nike

我在安装 FOS 用户包时遇到问题。我试图到处搜索它,但可能是我太笨了,找不到它。

我创建了一个名为 Admin 的实体并尝试运行 doctrine:schema:update --force我有一个错误:必须配置路径“fos_user”处的子节点“from_email”。

这是我的 config.yml fos 部分。

fos_user:
db_driver: orm # other valid values are 'mongodb' and 'couchdb'
firewall_name: main
user_class: AppBundle\Entity\Admin

有什么建议吗?

最佳答案

在您的 config.yml 中添加 from_email 在路径“fos_user”:

# ...
fos_user:
db_driver: orm # other valid values are 'mongodb' and 'couchdb'
firewall_name: main
user_class: AppBundle\Entity\Admin
# ...
from_email:
address: you@example.com
sender_name: You
# ...

更多信息:Step 5: Configure the FOSUserBundle

关于php - Symfony FOS 用户包初始化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42096528/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com