Skip to content

Commit

Permalink
Add EventListener contract
Browse files Browse the repository at this point in the history
  • Loading branch information
jeckel committed Jan 20, 2022
1 parent 8bffa54 commit e49d08a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Domain/Event/EventListener.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

/**
* @author: Julien Mercier-Rojas <[email protected]>
* Created at: 20/01/2022
*/

declare(strict_types=1);

namespace JeckelLab\Contract\Domain\Event;

interface EventListener
{
/**
* @return array<class-string<Event>>
* @psalm-mutation-free
*/
public static function getSubscribedEvents(): array;
}

0 comments on commit e49d08a

Please sign in to comment.