From bb296253e7fc0aaed889c59dfebc4cebfff0c17e Mon Sep 17 00:00:00 2001 From: Denis Mikhinev Date: Sat, 21 Oct 2023 19:16:01 +0700 Subject: [PATCH] Enable autowire and autoconfigure for sonata.user.admin.user service --- src/Resources/config/admin_mongodb.php | 2 ++ src/Resources/config/admin_orm.php | 2 ++ 2 files changed, 4 insertions(+) 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'), ]);