Skip to content

Commit

Permalink
feat!: move message interfaces into the toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
lindyhopchris committed Dec 23, 2024
1 parent f00ee41 commit bc5625e
Show file tree
Hide file tree
Showing 90 changed files with 127 additions and 121 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. This projec

## Unreleased

### Changed

- **BREAKING** Moved the `Message`, `Command`, `Query`, and `IntegrationEvent` interfaces to the `Toolkit\Messages`
namespace. This is to make it clearer that these are part of the toolkit, not the application or infrastructure
layers. It matches the `Result` and `Error` interfaces that are already in the `Toolkit\Result` namespace. I.e.
now the toolkit contains both the input and output interfaces.

## [2.0.0] - 2024-12-07

### Changed
Expand Down
13 changes: 6 additions & 7 deletions docs/guide/application/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ For example:
```php
namespace App\Modules\EventManagement\Application\UseCases\Commands\CancelAttendeeTicket;

use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Identifiers\Identifier;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use VendorName\EventManagement\Shared\Enums\CancellationReasonEnum;

final readonly class CancelAttendeeTicketCommand implements Command
Expand Down Expand Up @@ -353,8 +353,7 @@ class CancellationController extends Controller
```

To allow commands to be queued, you **must** provide a queue factory to the command bus when creating it. This topic is
covered in the [Asynchronous Processing](../infrastructure/queues#external-queuing) chapter, with specific examples
in the _External Queuing_ section.
covered in the [Queues chapter](../infrastructure/queues.md#queue-port).

## Middleware

Expand Down Expand Up @@ -541,9 +540,9 @@ that has sensitive customer data on it that you do not want to end up in your lo
implement the `ContextProvider` interface on your command message:

```php
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Identifiers\Identifier;
use CloudCreativity\Modules\Contracts\Toolkit\Loggable\ContextProvider;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;

final readonly class CancelAttendeeTicketCommand implements
Command,
Expand Down Expand Up @@ -575,7 +574,7 @@ namespace App\Modules\EventManagement\Application\Bus\Middleware;

use Closure;
use CloudCreativity\Modules\Contracts\Application\Bus\CommandMiddleware;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;

final class MyMiddleware implements CommandMiddleware
Expand Down Expand Up @@ -617,8 +616,8 @@ namespace App\Modules\EventManagement\Application\Bus\Middleware;

use Closure;
use CloudCreativity\Modules\Contracts\Application\Bus\BusMiddleware;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Application\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;

class MyBusMiddleware implements BusMiddleware
Expand Down
14 changes: 7 additions & 7 deletions docs/guide/application/integration-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ For example:
```php
namespace VendorName\EventManagement\Shared\IntegrationEvents\V1;

use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Identifiers\Identifier;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;
use CloudCreativity\Modules\Toolkit\Identifiers\Uuid;
use VendorName\EventManagement\Shared\Enums\CancellationReasonEnum;

Expand Down Expand Up @@ -97,7 +97,7 @@ This can be expressed via an interface. To illustrate the point, a JSON serializ
```php
namespace VendorName\Ordering\Shared\IntegrationEvents\V1\Serializers;

use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;

interface JsonSerializer
{
Expand Down Expand Up @@ -540,7 +540,7 @@ Here is an example controller from a Laravel application to demonstrate the patt
namespace App\Http\Controllers\Api\PubSub;

use App\Modules\EventManagement\Application\Ports\Driving\InboundEventBus;
use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;
use VendorName\Ordering\Shared\IntegrationEvents\V1\Serializers\JsonSerializer;

class InboundEventController extends Controller
Expand Down Expand Up @@ -648,7 +648,7 @@ example:
```php
namespace App\Modules\EventManagement\Application\Ports\Driving;

use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;

interface Inbox
{
Expand All @@ -663,7 +663,7 @@ might look like this:
```php
namespace App\Modules\EventManagement\Application\Ports\Driven\Inbox;

use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;

interface InboxRepository
{
Expand All @@ -683,7 +683,7 @@ This means we can now update the previous controller example to use the inbox in
namespace App\Http\Controllers\Api\PubSub;

use App\Modules\EventManagement\Application\Ports\Driving\InboundEvents\Inbox;
use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;
use VendorName\Ordering\Shared\IntegrationEvents\V1\Serializers\JsonSerializer;

class InboundEventController extends Controller
Expand Down Expand Up @@ -890,7 +890,7 @@ namespace App\Modules\EventManagement\Application\Bus\Middleware;

use Closure;
use CloudCreativity\Modules\Contracts\Application\InboundEventBus\InboundEventMiddleware;
use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;

final class MyMiddleware implements InboundEventMiddleware
{
Expand Down
8 changes: 4 additions & 4 deletions docs/guide/application/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ For example:
```php
namespace App\Modules\EventManagement\Application\UseCases\Queries\GetAttendeeTickets;

use CloudCreativity\Modules\Contracts\Application\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Identifiers\Identifier;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Query;

final readonly class GetAttendeeTicketsQuery implements Query
{
Expand Down Expand Up @@ -401,7 +401,7 @@ namespace App\Modules\EventManagement\Application\Bus\Middleware;

use Closure;
use CloudCreativity\Modules\Contracts\Application\Bus\QueryMiddleware;
use CloudCreativity\Modules\Contracts\Application\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;

final class MyMiddleware implements QueryMiddleware
Expand Down Expand Up @@ -443,8 +443,8 @@ namespace App\Modules\EventManagement\Application\Bus\Middleware;

use Closure;
use CloudCreativity\Modules\Contracts\Application\Bus\BusMiddleware;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Application\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;

class MyBusMiddleware implements BusMiddleware
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/infrastructure/outbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Our recommended approach is to first place these events into an outbox. This mea
```php
namespace App\Modules\EventManagement\Application\Ports\Driven\OutboundEvents;

use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;

interface Outbox
{
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/infrastructure/publishing-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace App\Modules\EventManagement\Infrastructure\OutboundEventBus;
use App\Modules\EventManagement\Application\Ports\Driven\OutboundEventBus\OutboundEventBus;
use App\Modules\EventManagement\Infrastructure\GooglePubSub\EventSerializer;
use App\Modules\EventManagement\Infrastructure\GooglePubSub\SecureTopicFactory;
use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;
use CloudCreativity\Modules\Infrastructure\OutboundEventBus\Middleware\LogOutboundEvent;
use CloudCreativity\Modules\Toolkit\Pipeline\PipeContainer;
use Psr\Log\LoggerInterface;
Expand Down Expand Up @@ -262,7 +262,7 @@ implement the following interface that was extended by the driven port:
```php
namespace CloudCreativity\Modules\Application\Ports\Driven\OutboundEventBus;

use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;

interface EventPublisher
{
Expand Down Expand Up @@ -321,8 +321,8 @@ following signature:
namespace App\Modules\EventManagement\Application\Adapters\Middleware;

use Closure;
use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Infrastructure\OutboundEventBus\OutboundEventMiddleware;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;

final class MyMiddleware implements OutboundEventMiddleware
{
Expand Down
10 changes: 5 additions & 5 deletions docs/guide/infrastructure/queues.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Then you can create the adapter by providing it with the default closure for que
namespace App\Modules\EventManagement\Infrastructure\Queue;

use App\Modules\EventManagement\Application\Ports\Driven\Queue\Queue;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Infrastructure\Queue\Middleware\LogPushedToQueue;
use CloudCreativity\Modules\Toolkit\Pipeline\PipeContainer;

Expand Down Expand Up @@ -237,7 +237,7 @@ example:
```php
namespace App\Modules\EventManagement\Infrastructure\Queue;

use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;

final class DefaultEnqueuer
{
Expand All @@ -264,7 +264,7 @@ implements the port interface that is extended in your application layer:
```php
namespace CloudCreativity\Modules\Application\Ports\Driven\Queue;

use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;

interface Queue
{
Expand Down Expand Up @@ -300,7 +300,7 @@ For example, a default Laravel job for queuing and dispatching commands would be
namespace App\Modules\EventManagement\Infrastructure\Queue;

use App\Modules\EventManagement\Application\Ports\Driving\CommandBus;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Toolkit\Result\FailedResultException;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
Expand Down Expand Up @@ -481,8 +481,8 @@ following signature:
namespace App\Modules\Shared\Infrastructure\Queue\Middleware;

use Closure;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Infrastructure\Queue\QueueMiddleware;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;

final class MyQueueMiddleware implements QueueMiddleware
{
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Bus/CommandDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

use Closure;
use CloudCreativity\Modules\Contracts\Application\Bus\CommandHandlerContainer;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Application\Ports\Driven\Queue;
use CloudCreativity\Modules\Contracts\Application\Ports\Driving\CommandDispatcher as ICommandDispatcher;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Pipeline\PipeContainer;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;
use CloudCreativity\Modules\Toolkit\Pipeline\MiddlewareProcessor;
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Bus/CommandHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
namespace CloudCreativity\Modules\Application\Bus;

use CloudCreativity\Modules\Contracts\Application\Bus\CommandHandler as ICommandHandler;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Application\Messages\DispatchThroughMiddleware;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;

final class CommandHandler implements ICommandHandler
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Bus/Middleware/ExecuteInUnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
use Closure;
use CloudCreativity\Modules\Application\Bus\Exceptions\AbortOnFailureException;
use CloudCreativity\Modules\Contracts\Application\Bus\CommandMiddleware;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Application\UnitOfWork\UnitOfWorkManager;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;

final class ExecuteInUnitOfWork implements CommandMiddleware
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Bus/Middleware/FlushDeferredEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Closure;
use CloudCreativity\Modules\Contracts\Application\Bus\CommandMiddleware;
use CloudCreativity\Modules\Contracts\Application\DomainEventDispatching\DeferredDispatcher;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;
use Throwable;

Expand Down
4 changes: 2 additions & 2 deletions src/Application/Bus/Middleware/LogMessageDispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

use Closure;
use CloudCreativity\Modules\Contracts\Application\Bus\BusMiddleware;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Application\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;
use CloudCreativity\Modules\Toolkit\Loggable\ObjectContext;
use CloudCreativity\Modules\Toolkit\Loggable\ResultContext;
Expand Down
4 changes: 2 additions & 2 deletions src/Application/Bus/Middleware/SetupBeforeDispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

use Closure;
use CloudCreativity\Modules\Contracts\Application\Bus\BusMiddleware;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Application\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;

final class SetupBeforeDispatch implements BusMiddleware
Expand Down
4 changes: 2 additions & 2 deletions src/Application/Bus/Middleware/TearDownAfterDispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

use Closure;
use CloudCreativity\Modules\Contracts\Application\Bus\BusMiddleware;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Application\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;

final class TearDownAfterDispatch implements BusMiddleware
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Bus/Middleware/ValidateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Closure;
use CloudCreativity\Modules\Contracts\Application\Bus\CommandMiddleware;
use CloudCreativity\Modules\Contracts\Application\Bus\Validator;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result as IResult;
use CloudCreativity\Modules\Toolkit\Result\Result;

Expand Down
2 changes: 1 addition & 1 deletion src/Application/Bus/Middleware/ValidateQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Closure;
use CloudCreativity\Modules\Contracts\Application\Bus\QueryMiddleware;
use CloudCreativity\Modules\Contracts\Application\Bus\Validator;
use CloudCreativity\Modules\Contracts\Application\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result as IResult;
use CloudCreativity\Modules\Toolkit\Result\Result;

Expand Down
2 changes: 1 addition & 1 deletion src/Application/Bus/QueryDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
namespace CloudCreativity\Modules\Application\Bus;

use CloudCreativity\Modules\Contracts\Application\Bus\QueryHandlerContainer;
use CloudCreativity\Modules\Contracts\Application\Messages\Query;
use CloudCreativity\Modules\Contracts\Application\Ports\Driving\QueryDispatcher as IQueryDispatcher;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Pipeline\PipeContainer;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;
use CloudCreativity\Modules\Toolkit\Pipeline\MiddlewareProcessor;
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Bus/QueryHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

use CloudCreativity\Modules\Contracts\Application\Bus\QueryHandler as IQueryHandler;
use CloudCreativity\Modules\Contracts\Application\Messages\DispatchThroughMiddleware;
use CloudCreativity\Modules\Contracts\Application\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Result\Result;

final class QueryHandler implements IQueryHandler
Expand Down
4 changes: 2 additions & 2 deletions src/Application/Bus/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
namespace CloudCreativity\Modules\Application\Bus;

use CloudCreativity\Modules\Contracts\Application\Bus\Validator as IValidator;
use CloudCreativity\Modules\Contracts\Application\Messages\Command;
use CloudCreativity\Modules\Contracts\Application\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Command;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\Query;
use CloudCreativity\Modules\Contracts\Toolkit\Pipeline\PipeContainer;
use CloudCreativity\Modules\Contracts\Toolkit\Pipeline\Pipeline;
use CloudCreativity\Modules\Contracts\Toolkit\Result\ListOfErrors as IListOfErrors;
Expand Down
2 changes: 1 addition & 1 deletion src/Application/InboundEventBus/EventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

use CloudCreativity\Modules\Contracts\Application\InboundEventBus\EventHandler as IEventHandler;
use CloudCreativity\Modules\Contracts\Application\Messages\DispatchThroughMiddleware;
use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;

final class EventHandler implements IEventHandler
{
Expand Down
2 changes: 1 addition & 1 deletion src/Application/InboundEventBus/EventHandlerContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

use Closure;
use CloudCreativity\Modules\Contracts\Application\InboundEventBus\EventHandlerContainer as IEventHandlerContainer;
use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;
use RuntimeException;

final class EventHandlerContainer implements IEventHandlerContainer
Expand Down
2 changes: 1 addition & 1 deletion src/Application/InboundEventBus/InboundEventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
namespace CloudCreativity\Modules\Application\InboundEventBus;

use CloudCreativity\Modules\Contracts\Application\InboundEventBus\EventHandlerContainer;
use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Application\Ports\Driving\InboundEventDispatcher as IInboundEventDispatcher;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Pipeline\PipeContainer;
use CloudCreativity\Modules\Toolkit\Pipeline\MiddlewareProcessor;
use CloudCreativity\Modules\Toolkit\Pipeline\PipelineBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Closure;
use CloudCreativity\Modules\Contracts\Application\DomainEventDispatching\DeferredDispatcher;
use CloudCreativity\Modules\Contracts\Application\InboundEventBus\InboundEventMiddleware;
use CloudCreativity\Modules\Contracts\Application\Messages\IntegrationEvent;
use CloudCreativity\Modules\Contracts\Toolkit\Messages\IntegrationEvent;
use Throwable;

final class FlushDeferredEvents implements InboundEventMiddleware
Expand Down
Loading

0 comments on commit bc5625e

Please sign in to comment.