From b4772fbba6fadc5a7c05e5288e0f60d47a4d5dc6 Mon Sep 17 00:00:00 2001 From: Tadas Rimkus Date: Sat, 19 Mar 2022 22:59:08 +0100 Subject: [PATCH] Replace $container `has` check with `hasParameter` (#7769) --- src/DependencyInjection/SonataAdminExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DependencyInjection/SonataAdminExtension.php b/src/DependencyInjection/SonataAdminExtension.php index b4958133ee..c4e3a5641e 100644 --- a/src/DependencyInjection/SonataAdminExtension.php +++ b/src/DependencyInjection/SonataAdminExtension.php @@ -144,9 +144,9 @@ public function load(array $configs, ContainerBuilder $container): void break; case 'sonata.admin.security.handler.acl': - if (!$container->has('security.acl.provider')) { + if (!isset($bundles['AclBundle'])) { throw new \RuntimeException( - 'The "security.acl.provider" service is needed to use ACL as security handler.' + 'The "symfony/acl-bundle" is needed to use ACL as security handler.' .' You MUST install and enable the "symfony/acl-bundle" bundle.' ); }