Skip to content

Commit ac2abae

Browse files
committed
Fixed wrong QueryBus references. I mean EventBus instead.
1 parent 6f192b6 commit ac2abae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ $container['ProducerEventBusMiddleware'] = function() use ($container) {
9090

9191
//This is our ProducerEventBus.
9292
$container['ProducerEventBus'] = function() use ($container) {
93-
return new \NilPortugues\MessageBus\EventBus\QueryBus([
93+
return new \NilPortugues\MessageBus\EventBus\EventBus([
9494
$container['LoggerEventBusMiddleware'],
9595
$container['ProducerEventBusMiddleware'],
9696
$container['EventBusMiddleware'],
@@ -110,7 +110,7 @@ This could be as simple as follows:
110110
<?php
111111
//This is our ConsumerEventBus.
112112
$container['ConsumerEventBus'] = function() use ($container) {
113-
return new \NilPortugues\MessageBus\EventBus\QueryBus([
113+
return new \NilPortugues\MessageBus\EventBus\EventBus([
114114
$container['LoggerEventBusMiddleware'],
115115
$container['EventBusMiddleware'],
116116
]);

0 commit comments

Comments
 (0)