【发布时间】:2023-03-03 20:41:02
【问题描述】:
我可以使用 Sonata 用户包将 FOS 包集成到奏鸣曲管理包。我的登录工作正常。现在我想将 FOSUserBundle 中的更改密码等功能添加到奏鸣曲管理包
我可以使用访问 FOS 用户包的配置文件功能
localhost/myproject/web/app_dev.php/profile
但是修改密码也是一样的
localhost/myproject/web/app_dev.php/change-password 无法访问。
我想将它与 SonataAdminBundle 集成为
localhost/myproject/web/app_dev.php/admin/change-password
你能建议我在哪里改变或者我哪里出错了吗?
在我的路由中
fos_user_security:
resource: "@FOSUserBundle/Resources/config/routing/security.xml"
fos_user_profile:
resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
prefix: /profile
fos_user_register:
resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
prefix: /register
fos_user_resetting:
resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
prefix: /resetting
fos_user_change_password:
resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
prefix: /change-password
【问题讨论】:
标签: symfony fosuserbundle sonata-admin