From af37d37ff2f0c18040541ae7c88a4075d92dde7e Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Wed, 21 Aug 2024 14:41:36 -0400 Subject: [PATCH] upgrade bus dependency --- composer.json | 4 ++-- tests/Event/Bus/NativeDomainEventBusTest.php | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index adbd193..3d95664 100644 --- a/composer.json +++ b/composer.json @@ -11,13 +11,13 @@ ], "require": { "php": ">=8.2", - "open-solid/bus": "^1.0.2", + "open-solid/bus": "^1.1", "symfony/string": "^7.1", "symfony/uid": "^7.1" }, "require-dev": { "phpunit/phpunit": "^11.1", - "symfony/messenger": "^7.0", + "symfony/messenger": "^7.1", "friendsofphp/php-cs-fixer": "^3.54" }, "autoload": { diff --git a/tests/Event/Bus/NativeDomainEventBusTest.php b/tests/Event/Bus/NativeDomainEventBusTest.php index f2502f6..ddd2a1d 100644 --- a/tests/Event/Bus/NativeDomainEventBusTest.php +++ b/tests/Event/Bus/NativeDomainEventBusTest.php @@ -13,8 +13,8 @@ namespace OpenSolid\Domain\Tests\Event\Bus; -use OpenSolid\Bus\Handler\MessageHandlersCountPolicy; -use OpenSolid\Bus\Handler\MessageHandlersLocator; +use OpenSolid\Bus\Handler\HandlersCountPolicy; +use OpenSolid\Bus\Handler\HandlersLocator; use OpenSolid\Bus\Middleware\HandlingMiddleware; use OpenSolid\Bus\NativeLazyMessageBus; use OpenSolid\Bus\NativeMessageBus; @@ -36,9 +36,9 @@ public function testPublishAndSubscribe(): void $nativeMessageBus = new NativeMessageBus([ new HandlingMiddleware( - new MessageHandlersLocator([ + new HandlersLocator([ EntityCreated::class => [$subscriber1, $subscriber2], - ]), MessageHandlersCountPolicy::NO_HANDLER + ]), policy: HandlersCountPolicy::NO_HANDLER ), ]); $bus = new NativeEventBus(new NativeLazyMessageBus($nativeMessageBus)); @@ -55,8 +55,8 @@ public function testNoSubscriberForEvent(): void $nativeMessageBus = new NativeMessageBus([ new HandlingMiddleware( - new MessageHandlersLocator([]), - MessageHandlersCountPolicy::NO_HANDLER, + new HandlersLocator([]), + policy: HandlersCountPolicy::NO_HANDLER, ), ]); $bus = new NativeEventBus(new NativeLazyMessageBus($nativeMessageBus));