Releases: ICanBoogie/MessageBus
Releases · ICanBoogie/MessageBus
Simplified interface, PHP 8 attributes
New Requirements
None
New features
- Added
HandlerProviderWithChain, which allows chaining multiple handler providers. They are
queried in turn until a handler is found. - Handlers, Permissions, and Voters can now be defined using PHP 8 attributes instead of YAML. Added
MessageBusPassWithAttributes, and the attributesHandler,Permission, andVote.
Backward Incompatible Changes
HandlerProvider::getHandlerForMessage()can now returnnull, undefined handlers are handled in
one single location now, that isDispatcherWithHandlerProvider.- Dropped
HandlerProviderPass,CommandDispatcher,CommandHandlerProvider,
CommandHandlerProviderPass,QueryDispatcher,QueryHandlerProvider,
QueryHandlerProviderPassin favor ofMessageBusPass. - Dropped
ContainerHandlerProviderin favor ofHandlerProviderWithContainer. - Dropped
AssertingDispatcherin favor ofRestrictedDispatcher. - Dropped
SimpleHandlerProviderin favor ofHandlerProviderWithHandlers. - Dropped
SimpleDispatcherin favor ofDispatcherWithHandlerProvider. - Dropped
NotFoundin favor ofHandlerNotFound.
Deprecated Features
None
Other Changes
None
Permissions and voters
This release introduces permissions and voters, the foundation for restricting message dispatching under certain conditions. These changes allow a simplification of the API, and the concepts of "queries" and "commands" is now deprecated.
See MIGRATIONS for details.
Requires PHP 8.0+
Merge pull request #2 from ICanBoogie/2.0 Require PHP 8.0
v1.0.0
QueryDispatcher/CommandDispatcher
v0.6.0 Add QueryDispatcher/CommandDispatcher