简体   繁体   中英

Building Backoffice without SonataUserBundle

I am in the process of migrating a project from Symfony 2.8 to 3.4 .

In this project, I used sonataUserBundle as a dependency ( before migrating ) which unfortunately does not work in Symfony 3 .

So, I tried to use SonataAdminBundle with FosUserBundle and I removed the SonataUserBundle dependency.

After removing "sonata_user" configuration from config.yml file , I had the following exception:

An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route" admin_del_user_user_edit "as such route does not exist.").

So my question is: is it possible to remove sonataUserBundle and use only sonataAdminBundle and FosUserBundle in order to build a back office?

How can I resolve the routeNotFoundException?

yes, in fact you can find a whole sample in symfony website in this link

Code used in the short guide can be found here with support for different Symfony versions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM