Skip to content

Commit

Permalink
Make Menu non-shared
Browse files Browse the repository at this point in the history
In order to have new instance for every request in Long-running process (ReactPHP, Amphp, RoadRunner)
  • Loading branch information
Warxcell committed Jul 28, 2022
1 parent 58a5e69 commit 6a1c337
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Resources/config/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
])

->set('sonata.admin.sidebar_menu', MenuItem::class)
->share(false)
->tag('knp_menu.menu', ['alias' => 'sonata_admin_sidebar'])
->factory([
new ReferenceConfigurator('sonata.admin.menu_builder'),
Expand Down

0 comments on commit 6a1c337

Please sign in to comment.