Download the PHP package php-commons/cqrs-bus without Composer
On this page you can find all versions of the php package php-commons/cqrs-bus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-commons/cqrs-bus
More information about php-commons/cqrs-bus
Files in php-commons/cqrs-bus
Package cqrs-bus
Short Description CQRS Bus is Symfony 4.3+ Bundle with Command Bus & QueryBus using Symfony Messanger
License MIT
Informations about the package cqrs-bus
cqrs-bus
CQRS Bus is Symfony 4.3+ Bundle with Command Bus & QueryBus using Symfony Messanger
Installation
Configuration
config/services.yaml
CommandBus
Handler's configuration
or
It's VERY important to tag ALL of yours Commands Handlers with: { name: messenger.message_handler, bus: command.bus }
, otherwise other MessageHandler can handle query.
It's VERY important to extend ALL of yours Commands Handlers from: PhpCommons\CQRSBus\Handlers\Command\AbstractCommandHandler
, otherwise CommandHandler will not find it.
QueryBus
Handler's configuration
You need to configure your handler in /config/services.yml
or
It's VERY important to tag ALL of yours Queries Handlers with: { name: messenger.message_handler, bus: query.bus }
, otherwise other MessageHandler can handle query.
It's VERY important to extend ALL of yours Queries Handlers from: PhpCommons\CQRSBus\Handlers\Query\AbstractQueryHandler
, otherwise QueryHandler will not find it.
Usage
CommandBus
Command:
CommandHandler:
QueryBus
Query:
QueryHandler:
All versions of cqrs-bus with dependencies
symfony/messenger Version ^4.3
symfony/http-kernel Version ^4.3
symfony/dependency-injection Version ^4.3
symfony/yaml Version ^4.3
symfony/config Version ^4.3
symfony/framework-bundle Version ^4.3