We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create generic messenger handlers for query & command bus
use Streak\Application\Command; use Streak\Application\CommandBus; use Symfony\Component\Messenger\Handler\MessageHandlerInterface; /** * Simple messenger adapter for Streak command bus. * * @author Alan Gabriel Bem <[email protected]> */ class CommandDispatchingHandler implements MessageHandlerInterface { private CommandBus $bus; public function __construct(CommandBus $bus) { $this->bus = $bus; } public function __invoke(Command $command) : void { $this->bus->dispatch($command); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
create generic messenger handlers for query & command bus
The text was updated successfully, but these errors were encountered: