Skip to content

Commit

Permalink
upgrade bus dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Aug 21, 2024
1 parent 8b61a0e commit af37d37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
12 changes: 6 additions & 6 deletions tests/Event/Bus/NativeDomainEventBusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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));
Expand All @@ -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));
Expand Down

0 comments on commit af37d37

Please sign in to comment.