Symfony FOS路由未正确更新更改密码

时间:2017-05-22 00:49:54

标签: symfony model-view-controller routing fosuserbundle

我有一个使用 FOS用户软件包进行处理的symfony项目。

我想修改app/config/routing.yml

中存储的默认路由

除了 change_password.xml

之外,现在改变所有路线似乎都运行正常
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: /psswd
# this prefix value throws GET error. 
# without the previx '/change-password` works fine

更改前缀中的任何内容都会为我提供路径

的Get not found错误
  

找不到" GET / psswd"

的路线

我已经清除了缓存,一切似乎都运行正常。

有谁能告诉我为什么会出现这样的问题?

更新

结果显示路径/psswd无效路径' / psswd / change-password`正常工作:我

0 个答案:

没有答案