diff --git a/src/Resources/config/admin_mongodb.php b/src/Resources/config/admin_mongodb.php index 825fc76af..b41f19659 100644 --- a/src/Resources/config/admin_mongodb.php +++ b/src/Resources/config/admin_mongodb.php @@ -27,6 +27,8 @@ 'label_translator_strategy' => 'sonata.admin.label.strategy.underscore', 'icon' => '', ]) + ->autowire(true) + ->autoconfigure(true) ->args([ service('sonata.user.manager.user'), ]); diff --git a/src/Resources/config/admin_orm.php b/src/Resources/config/admin_orm.php index 1c396b836..011cc9c1e 100644 --- a/src/Resources/config/admin_orm.php +++ b/src/Resources/config/admin_orm.php @@ -27,6 +27,8 @@ 'label_translator_strategy' => 'sonata.admin.label.strategy.underscore', 'icon' => '', ]) + ->autowire(true) + ->autoconfigure(true) ->args([ service('sonata.user.manager.user'), ]);