17 lines
356 B
PHP
17 lines
356 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Infrastructure\Adapters\Events;
|
|
|
|
use Illuminate\Support\Facades\Event;
|
|
use Shared\DDD\DomainEventDispatcher;
|
|
use Shared\DDD\Event as LibEvent;
|
|
|
|
class LaravelDomainEventDispatcher implements DomainEventDispatcher
|
|
{
|
|
public function dispatch(LibEvent $event): void
|
|
{
|
|
Event::dispatch($event);
|
|
}
|
|
}
|