-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb3c228
commit 469f7a7
Showing
16 changed files
with
201 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace AwdStudio\Bus\Handler; | ||
|
||
use AwdStudio\Bus\HandlerLocator; | ||
|
||
/** | ||
* @psalm-template TCallback of callable | ||
* @phpstan-template TCallback of callable | ||
* | ||
* @extends HandlerLocator<TCallback> | ||
*/ | ||
interface HandlerRegistry extends HandlerLocator | ||
{ | ||
/** | ||
* Registers a handler from a PSR-container as a message handler. | ||
* | ||
* @param string $messageId | ||
* @param string $handlerId | ||
* | ||
* @throws \AwdStudio\Bus\Exception\InvalidHandler | ||
* | ||
* @psalm-param class-string $messageId | ||
* @phpstan-param class-string $messageId | ||
*/ | ||
public function register(string $messageId, string $handlerId): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.