Eak*_*het 19 php symfony fosuserbundle
我在安装FOS用户包时遇到问题.我试图到处搜索它,但可能我太笨了,找不到它.
我创建了一个名为Admin的实体,并试图运行doctrine:schema:update --force我遇到了一个错误: The child node "from_email" at path "fos_user" must be configured.
这是我的config.yml fos部分.
fos_user:
db_driver: orm # other valid values are 'mongodb' and 'couchdb'
firewall_name: main
user_class: AppBundle\Entity\Admin
Run Code Online (Sandbox Code Playgroud)
有什么建议?
Bre*_*ith 51
在你的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
# ...
Run Code Online (Sandbox Code Playgroud)
更多信息:步骤5:配置FOSUserBundle
| 归档时间: |
|
| 查看次数: |
15726 次 |
| 最近记录: |