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
,
QueryHandlerProviderPass
in favor ofMessageBusPass
. - Dropped
ContainerHandlerProvider
in favor ofHandlerProviderWithContainer
. - Dropped
AssertingDispatcher
in favor ofRestrictedDispatcher
. - Dropped
SimpleHandlerProvider
in favor ofHandlerProviderWithHandlers
. - Dropped
SimpleDispatcher
in favor ofDispatcherWithHandlerProvider
. - Dropped
NotFound
in 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