0
我已經使用kunstmaan/adminlist-bundle生成了2個管理列表,並發現在routing.yml中指定的前綴無法識別。symfont路由前綴不起作用
MyBundle /資源/配置/ routing.yml中
appbundle_importerror_admin_list:
resource: @AppBundle/Controller/ImportErrorAdminListController.php
type: annotation
prefix: /admin/importerror
appbundle_filetosync_admin_list:
resource: @AppBundle/Controller/FileToSyncAdminListController.php
type: annotation
prefix: /admin/filetosync/
然而,當我運行斌/控制檯調試:路由器,我得到
homepage ANY ANY ANY /
appbundle_admin_filetosync ANY ANY ANY /
appbundle_admin_filetosync_add GET|POST ANY ANY /add
appbundle_admin_filetosync_edit GET|POST ANY ANY /{id}
appbundle_admin_filetosync_view GET ANY ANY /{id}
appbundle_admin_filetosync_delete GET|POST ANY ANY /{id}/delete
appbundle_admin_filetosync_export GET|POST ANY ANY /export.{_format}
appbundle_admin_filetosync_move_up GET ANY ANY /{id}/move-up
appbundle_admin_filetosync_move_down GET ANY ANY /{id}/move-down
appbundle_admin_importerror ANY ANY ANY /
appbundle_admin_importerror_add GET|POST ANY ANY /add
appbundle_admin_importerror_edit GET|POST ANY ANY /{id}
appbundle_admin_importerror_view GET ANY ANY /{id}
appbundle_admin_importerror_delete GET|POST ANY ANY /{id}/delete
appbundle_admin_importerror_export GET|POST ANY ANY /export.{_format}
appbundle_admin_importerror_move_up GET ANY ANY /{id}/move-up
appbundle_admin_importerror_move_down GET ANY ANY /{id}/move-down
我怎麼能有應用了這些路線的前綴?