diff --git a/src/DependencyInjection/SonataUserExtension.php b/src/DependencyInjection/SonataUserExtension.php
index f23f4c3cb..03ccc107a 100644
--- a/src/DependencyInjection/SonataUserExtension.php
+++ b/src/DependencyInjection/SonataUserExtension.php
@@ -260,6 +260,10 @@ protected function aliasManagers(ContainerBuilder $container, $managerType): voi
{
$container->setAlias('sonata.user.user_manager', sprintf('sonata.user.%s.user_manager', $managerType));
$container->setAlias('sonata.user.group_manager', sprintf('sonata.user.%s.group_manager', $managerType));
+
+ // NEXT_MAJOR: call setPublic(true) directly, when dropping support for Sf 3.3
+ $container->getAlias('sonata.user.user_manager')->setPublic(true);
+ $container->getAlias('sonata.user.group_manager')->setPublic(true);
}
/**
diff --git a/src/Resources/config/admin.xml b/src/Resources/config/admin.xml
index 38764a3e2..280d92c53 100644
--- a/src/Resources/config/admin.xml
+++ b/src/Resources/config/admin.xml
@@ -30,7 +30,7 @@
%security.role_hierarchy.roles%
-
+
diff --git a/src/Resources/config/orm.xml b/src/Resources/config/orm.xml
index 830a67e61..e52b7b874 100644
--- a/src/Resources/config/orm.xml
+++ b/src/Resources/config/orm.xml
@@ -7,7 +7,7 @@
%fos_user.model.user.class%
-
+
%fos_user.model.user.class%