Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 679 Bytes
<?php
declare(strict_types=1);
namespace MyService\Domain\Api;
use EventEngine\EventEngine;
use EventEngine\EventEngineDescription;
class Listener implements EventEngineDescription
{
public static function describe(EventEngine $eventEngine): void
{
/**
* Register domain event listeners
*
* This can be anything f.e. a mailer, a process manager or a message producer as long as
* it is a callable that takes the domain event as a single argument and is loadable from DI container
*
* @example
*
* $eventEngine->on(Event::USER_REGISTERED, VerificationMailer::class);
*/
}
}
You can’t perform that action at this time.