All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Method
event()
was added to interfaceGhostwriter\EventDispatcher\Interface\Event\ErrorEventInterface
- Method
listener()
was added to interfaceGhostwriter\EventDispatcher\Interface\Event\ErrorEventInterface
- Method
listeners()
was added to interfaceGhostwriter\EventDispatcher\Interface\ListenerProviderInterface
- Method
throwable()
was added to interfaceGhostwriter\EventDispatcher\Interface\Event\ErrorEventInterface
- Method
unbind()
was added to interfaceGhostwriter\EventDispatcher\Interface\ListenerProviderInterface
- Method
unsubscribe()
was added to interfaceGhostwriter\EventDispatcher\Interface\ListenerProviderInterface
- Parameter 0 of
Ghostwriter\EventDispatcher\Interface\SubscriberInterface#__invoke()
changed name fromprovider
tolistenerProvider
- The number of required arguments for
Ghostwriter\EventDispatcher\ListenerProvider#__construct()
increased from 0 to 1 - The parameter
$event
ofGhostwriter\EventDispatcher\Interface\EventDispatcherInterface#dispatch()
changed fromGhostwriter\EventDispatcher\Interface\EventInterface
toobject
- The parameter
$reflector
ofGhostwriter\EventDispatcher\ListenerProvider#__construct()
changed fromGhostwriter\Container\Reflector
to a non-contravariantGhostwriter\Container\Interface\ContainerInterface
- The return type of
Ghostwriter\EventDispatcher\EventDispatcher#dispatch()
changed fromGhostwriter\EventDispatcher\Interface\EventInterface
to the non-covariantobject
- The return type of
Ghostwriter\EventDispatcher\Interface\EventDispatcherInterface#dispatch()
changed fromGhostwriter\EventDispatcher\Interface\EventInterface
toobject
- The return type of
Ghostwriter\EventDispatcher\Interface\EventDispatcherInterface#dispatch()
changed fromGhostwriter\EventDispatcher\Interface\EventInterface
to the non-covariantobject
- Class
Ghostwriter\EventDispatcher\Exception\EventMustImplementEventInterfaceException
has been deleted - Class
Ghostwriter\EventDispatcher\Exception\FailedToDetermineEventTypeException
has been deleted - Class
Ghostwriter\EventDispatcher\Exception\MissingEventParameterException
has been deleted - Class
Ghostwriter\EventDispatcher\Exception\MissingParameterTypeDeclarationException
has been deleted - Class
Ghostwriter\EventDispatcher\Interface\EventInterface
has been deleted - Class
Ghostwriter\EventDispatcher\Trait\EventTrait
has been deleted - Constant
Ghostwriter\EventDispatcher\ListenerProvider::LISTENERS
was removed - Constant
Ghostwriter\EventDispatcher\ListenerProvider::SUBSCRIBERS
was removed - Method
Ghostwriter\EventDispatcher\Event\ErrorEvent#getEvent()
was removed - Method
Ghostwriter\EventDispatcher\Event\ErrorEvent#getListener()
was removed - Method
Ghostwriter\EventDispatcher\Event\ErrorEvent#getThrowable()
was removed - Method
Ghostwriter\EventDispatcher\Interface\Event\ErrorEventInterface#getEvent()
was removed - Method
Ghostwriter\EventDispatcher\Interface\Event\ErrorEventInterface#getListener()
was removed - Method
Ghostwriter\EventDispatcher\Interface\Event\ErrorEventInterface#getThrowable()
was removed - Method
Ghostwriter\EventDispatcher\Interface\ListenerProviderInterface#getListenersForEvent()
was removed - Method
Ghostwriter\EventDispatcher\Interface\ListenerProviderInterface#listen()
was removed - Method
Ghostwriter\EventDispatcher\Interface\ListenerProviderInterface#remove()
was removed - Method
Ghostwriter\EventDispatcher\ListenerProvider#getListenersForEvent()
was removed - Method
Ghostwriter\EventDispatcher\ListenerProvider#hasListener()
was removed - Method
Ghostwriter\EventDispatcher\ListenerProvider#listen()
was removed - Method
Ghostwriter\EventDispatcher\ListenerProvider#remove()
was removed
- Rename Class
Ghostwriter\EventDispatcher\Interface\DispatcherInterface
toGhostwriter\EventDispatcher\Interface\EventDispatcherInterface
- Rename Class
Ghostwriter\EventDispatcher\Dispatcher
toGhostwriter\EventDispatcher\EventDispatcher
- Parameter 0 of
Ghostwriter\EventDispatcher\Interface\ListenerProviderInterface#remove()
changed name fromlistenerId
tolistener
- The return type of
Ghostwriter\EventDispatcher\Interface\Event\ErrorEventInterface#getListener()
changed frommixed
tostring
- The parameter
$listener
ofGhostwriter\EventDispatcher\Event\ErrorEvent#__construct()
changed frommixed
tostring
- Drop
AbstractEvent
in favor ofEventTrait
to avoid inheritance while still promoting reusability and reducing duplication. - Drop
AnonymousFunctionListener
- Drop
CallableArrayStaticMethodListener
- Drop
CallableArrayInstanceListener
- Drop
InvokableListener
- Namespace changed
Ghostwriter\EventDispatcher\ErrorEvent
toGhostwriter\EventDispatcher\Event\ErrorEvent
- Namespace changed
Ghostwriter\EventDispatcher\Interface\ErrorEventInterface
toGhostwriter\EventDispatcher\Interface\Event\ErrorEventInterface