Skip to content

Commit ef623d1

Browse files
committed
feat: replace component by contracts usage
1 parent 77c9e5f commit ef623d1

8 files changed

+8
-8
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\Component\EventDispatcher\EventDispatcher();
16+
$eventDispatcher = new Symfony\Contracts\EventDispatcher\EventDispatcher();
1717

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

src/Domain/Consumer/Consumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Rezzza\CommandBus\Domain\CommandBusInterface;
77
use Rezzza\CommandBus\Domain\Event;
88
use Rezzza\CommandBus\Domain\Exception\CommandHandlerFailedException;
9-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
9+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1010

1111
class Consumer
1212
{

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\Component\EventDispatcher\EventDispatcher;
6+
use Symfony\Contracts\EventDispatcher\EventDispatcher;
77

88
class ContainerAwareEventDispatcherBus extends EventDispatcher
99
{

src/Domain/Event/OnConsumerResponseEvent.php

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

55
use Rezzza\CommandBus\Domain\Consumer\Response;
6-
use Symfony\Component\EventDispatcher\Event;
6+
use Symfony\Contracts\EventDispatcher\Event;
77

88
/**
99
* OnConsumerResponseEvent

src/Domain/Event/OnDirectResponseEvent.php

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

55
use Rezzza\CommandBus\Domain\Consumer\Response;
6-
use Symfony\Component\EventDispatcher\Event;
6+
use Symfony\Contracts\EventDispatcher\Event;
77

88
/**
99
* OnDirectResponseEvent

src/Domain/Event/PreHandleCommandEvent.php

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

55
use Rezzza\CommandBus\Domain\CommandInterface;
6-
use Symfony\Component\EventDispatcher\Event;
6+
use Symfony\Contracts\EventDispatcher\Event;
77

88
/**
99
* PreHandleCommandEvent

src/Domain/EventDispatcherBus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Rezzza\CommandBus\Domain\Consumer\Response;
66
use Rezzza\CommandBus\Domain\Event;
7-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
7+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
88

99
class EventDispatcherBus implements CommandBusInterface
1010
{

src/Infra/Provider/Direct/DirectBus.php

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

1212
class DirectBus implements CommandBusInterface
1313
{

0 commit comments

Comments
 (0)