Skip to content

Commit db0df68

Browse files
committed
fix: put right namespace for eventdispatcher
1 parent ef623d1 commit db0df68

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

examples/redis_worker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Rezzza\CommandBus;
1414

1515
$logger = new Logger();
16-
$eventDispatcher = new Symfony\Contracts\EventDispatcher\EventDispatcher();
16+
$eventDispatcher = new Symfony\Component\EventDispatcher\EventDispatcher();
1717

1818
// redis bus
1919
$redis = new \Redis();

src/Domain/ContainerAwareEventDispatcherBus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Rezzza\CommandBus\Domain;
44

55
use Symfony\Component\DependencyInjection\ContainerInterface;
6-
use Symfony\Contracts\EventDispatcher\EventDispatcher;
6+
use Symfony\Component\EventDispatcher\EventDispatcher;
77

88
class ContainerAwareEventDispatcherBus extends EventDispatcher
99
{

src/Infra/Provider/Direct/DirectBus.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Rezzza\CommandBus\Domain\Handler\CommandHandlerLocatorInterface;
88
use Rezzza\CommandBus\Domain\Handler\HandlerDefinition;
99
use Rezzza\CommandBus\Domain\Handler\HandlerMethodResolverInterface;
10-
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1110

1211
class DirectBus implements CommandBusInterface
1312
{

0 commit comments

Comments
 (0)