All notable changes to this project will be documented in this file, in reverse chronological order by release.
triggerListeners()
was not resetting the event instance's
"stop propagation" flag before triggering listeners; this could result in all
listeners for a given event being skipped in cases where the event manager
instance triggers multiple events.^2.7
, and
requires PHP 7 builds to pass continuous integration.Zend\EventManager\Test\EventListenerIntrospectionTrait
, intended for
composition in unit tests. It provides a number of methods that can be used
to retrieve listeners with or without associated priority, and the assertion
assertListenerAtPriority(callable $listener, $priority, $event, EventManager $events, $message = '')
,
which can be used for testing that a listener was registered at the specified
priority with the specified event.The features in this patch are intended to facilitate testing against both version 2 and version 3 of zend-eventmanager, as it provides a consistent API for retrieving lists of events and listeners between the two versions.
Zend\EventManager\SharedEventsCapableInterface
. This interface will
largely replace Zend\EventManager\SharedEventManagerAwareInterface
in
version 3, and the latter was updated to extend it.EventManager::triggerEvent(EventInterface $event)
as a
forwards-compatibility feature.EventManager::triggerEventUntil(callable $callback, EventIterface $event)
as a forwards-compatibility feature.GlobalEventManager
as deprecated; this class will be removed in
version 3.StaticEventManager
as deprecated; this class will be removed in
version 3.SharedListenerAggregateInterface
as deprecated; this interface will
be removed in version 3.SharedEventAggregateAwareInterface
as deprecated; this interface will
be removed in version 3.SharedEventManagerAwareInterface
as deprecated; this interface will
be removed in version 3.EventManager::setSharedManager()
as deprecated; this method will be
removed in version 3.EventManager::unsetSharedManager()
as deprecated; this method will be
removed in version 3.EventManagerInterface::
and EventManager::getEvents()
as
deprecated; this method will be removed in version 3.EventManagerInterface::
and EventManager::getListeners()
as
deprecated; this method will be removed in version 3.EventManagerInterface::
and Eventmanager::setEventClass()
as
deprecated; this method is renamed to setEventPrototype(EventInterface $event)
in version 3.EventManagerInterface::
and EventManager::attachAggregate()
as
deprecated; this method will be removed in version 3.EventManagerInterface::
and EventManager::detachAggregate()
as
deprecated; this method will be removed in version 3.SharedEventManagerInterface::
and SharedEventManager::getEvents()
as deprecated; this method will be removed in version 3.$this
) from the test suite.FilterIterator
that occurs when attempting to extract from an empty heap.