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