Skip to content

Releases: ICanBoogie/MessageBus

Simplified interface, PHP 8 attributes

18 Dec 10:48
Compare
Choose a tag to compare

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 attributes Handler, Permission, and Vote.

Backward Incompatible Changes

  • HandlerProvider::getHandlerForMessage() can now return null, undefined handlers are handled in
    one single location now, that is DispatcherWithHandlerProvider.
  • Dropped HandlerProviderPass, CommandDispatcher, CommandHandlerProvider,
    CommandHandlerProviderPass, QueryDispatcher, QueryHandlerProvider,
    QueryHandlerProviderPass in favor of MessageBusPass.
  • Dropped ContainerHandlerProvider in favor of HandlerProviderWithContainer.
  • Dropped AssertingDispatcher in favor of RestrictedDispatcher.
  • Dropped SimpleHandlerProvider in favor of HandlerProviderWithHandlers.
  • Dropped SimpleDispatcher in favor of DispatcherWithHandlerProvider.
  • Dropped NotFound in favor of HandlerNotFound.

Deprecated Features

None

Other Changes

None

Permissions and voters

22 May 14:22
Compare
Choose a tag to compare

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+

25 Apr 20:29
893f231
Compare
Choose a tag to compare
Merge pull request #2 from ICanBoogie/2.0

Require PHP 8.0

v1.0.0

09 Dec 22:34
Compare
Choose a tag to compare
Replace broken doc links with internal ones

QueryDispatcher/CommandDispatcher

15 Nov 09:26
Compare
Choose a tag to compare
v0.6.0

Add QueryDispatcher/CommandDispatcher