From 2bfee36473885ea4a56f6e3ccb29efcd62350cb4 Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Thu, 9 Jan 2025 14:45:59 +0100 Subject: [PATCH] Fix availability checker aliases --- .../DependencyInjection/SyliusInventoryExtension.php | 3 ++- .../Bundle/InventoryBundle/Resources/config/services.xml | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sylius/Bundle/InventoryBundle/DependencyInjection/SyliusInventoryExtension.php b/src/Sylius/Bundle/InventoryBundle/DependencyInjection/SyliusInventoryExtension.php index c466b5f60aa..484b9d4309d 100644 --- a/src/Sylius/Bundle/InventoryBundle/DependencyInjection/SyliusInventoryExtension.php +++ b/src/Sylius/Bundle/InventoryBundle/DependencyInjection/SyliusInventoryExtension.php @@ -31,6 +31,7 @@ public function load(array $configs, ContainerBuilder $container): void $loader->load('services.xml'); $container->setAlias('sylius.availability_checker', $config['checker']); - $container->setAlias(AvailabilityCheckerInterface::class, $config['checker']); + $container->setAlias('sylius.checker.inventory.availability', 'sylius.availability_checker'); + $container->setAlias(AvailabilityCheckerInterface::class, 'sylius.checker.inventory.availability'); } } diff --git a/src/Sylius/Bundle/InventoryBundle/Resources/config/services.xml b/src/Sylius/Bundle/InventoryBundle/Resources/config/services.xml index 60c51d31a79..f4ed1f63d69 100644 --- a/src/Sylius/Bundle/InventoryBundle/Resources/config/services.xml +++ b/src/Sylius/Bundle/InventoryBundle/Resources/config/services.xml @@ -16,7 +16,6 @@ -