Fixed event interface
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"description": "A laravel package for events emitting between services using RabbitMQ as message broker.",
|
||||
"type": "library",
|
||||
"license": "MIT",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"keywords": [
|
||||
"laravel", "rabbitmq", "event", "emit", "microservice",
|
||||
"pipeline", "data exchanging", "message broker"
|
||||
|
||||
7
src/Interface/Event.php
Normal file
7
src/Interface/Event.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Diffhead\PHP\LaravelRabbitMQ\Interface;
|
||||
|
||||
interface Event {}
|
||||
@@ -5,7 +5,6 @@ declare(strict_types=1);
|
||||
namespace Diffhead\PHP\LaravelRabbitMQ\Interface;
|
||||
|
||||
use Diffhead\PHP\LaravelRabbitMQ\Object\Queue;
|
||||
use App\Shared\Event\Event;
|
||||
|
||||
interface EventMapper
|
||||
{
|
||||
|
||||
@@ -5,9 +5,10 @@ declare(strict_types=1);
|
||||
namespace Diffhead\PHP\LaravelRabbitMQ\Service;
|
||||
|
||||
use Diffhead\PHP\LaravelRabbitMQ\Exception\AssociatedEventNotFound;
|
||||
use Diffhead\PHP\LaravelRabbitMQ\Interface\Event;
|
||||
use Diffhead\PHP\LaravelRabbitMQ\Interface\EventMapper as EventMapperInterface;
|
||||
use Diffhead\PHP\LaravelRabbitMQ\Object\Queue;
|
||||
use App\Shared\Event\Event;
|
||||
|
||||
use Illuminate\Contracts\Foundation\Application;
|
||||
|
||||
class EventMapper implements EventMapperInterface
|
||||
|
||||
Reference in New Issue
Block a user