Download the PHP package nepada/message-bus-nette without Composer
On this page you can find all versions of the php package nepada/message-bus-nette. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nepada/message-bus-nette
More information about nepada/message-bus-nette
Files in nepada/message-bus-nette
Package message-bus-nette
Short Description Integration of nepada/message-bus into Nette Framework.
License BSD-3-Clause
Informations about the package message-bus-nette
Message Bus integration into Nette Framework
Installation
Via Composer:
Register the extension in config.neon
:
Usage
See nepada/message-bus for the documentation of the core library.
Logging
The extension tries to autowire PSR compatible logger into logging middleware. If this doesn't work for you, specify the logger service in configuration explicitly:
Nested command handling
Nested command handling is not allowed by default, this can be changed in configuration:
Doctrine
Doctrine ORM specific features for message bus are provided by nepada/message-bus-doctrine package. Follow the link for more detailed documentation. Once you install the package, it gets detected by DI extension and all necessary services are set up.
With Doctrine integration:
- all commands are handled in a transaction and all changes are automatically flushed and commited after the handler successfully finishes, or rolled back on error,
- database transactions started outside of command bus are forbidden,
- entity manager is (optionally) cleared before and after the handling of every command.
Change or completely disable the default entity manager clearing logic:
You can record your domain events inside entities implementing Nepada\Bridges\MessageBusDoctrine\Events\ContainsRecordedEvents
and they will be automatically collected and dispatched on flush.
Tip: use SearchExtension to auto-register command handlers and event subscribers
All versions of message-bus-nette with dependencies
symfony/messenger Version ^5.0@dev || ^6.0@dev || ^7.0@dev
nepada/message-bus Version ^2.2@dev || ^3.0@dev
nette/di Version ^3.0.9@dev
nette/utils Version ^3.2.5@dev || ^4.0@dev
nette/schema Version ^1.2.2@dev
psr/container Version ^1.1 || ^2.0