<?php
declare(strict_types=1);

namespace App\Foundation\Contracts;

interface EventDispatcherInterface
{
    public function listen(string $eventName, callable $listener, int $priority = 0): void;
    public function dispatch(string $eventName, mixed $payload = null): mixed;
}
