From d5fe19da8ce754c946c5af7c39ce880422ecaa0d Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Thu, 8 Aug 2024 16:20:39 +0200 Subject: [PATCH] Remove requirement to message bus alias (#694) --- src/Infrastructure/Symfony/HttpKernel/SuluArticleBundle.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Infrastructure/Symfony/HttpKernel/SuluArticleBundle.php b/src/Infrastructure/Symfony/HttpKernel/SuluArticleBundle.php index 5d7e3227..fe66e394 100644 --- a/src/Infrastructure/Symfony/HttpKernel/SuluArticleBundle.php +++ b/src/Infrastructure/Symfony/HttpKernel/SuluArticleBundle.php @@ -100,9 +100,6 @@ public function loadExtension(array $config, ContainerConfigurator $container, C $builder->registerForAutoconfiguration(ArticleMapperInterface::class) ->addTag('sulu_article.article_mapper'); - // Message Bus - $services->alias('sulu_article.message_bus', 'sulu_message_bus'); - // Message Handler services $services->set('sulu_article.create_article_handler') ->class(CreateArticleMessageHandler::class) @@ -179,7 +176,7 @@ public function loadExtension(array $config, ContainerConfigurator $container, C ->public() ->args([ new Reference('sulu_article.article_repository'), - new Reference('sulu_article.message_bus'), + new Reference('sulu_message_bus'), new Reference('serializer'), // additional services to be removed when no longer needed new Reference('sulu_content.content_manager'),