Interface EventManagerAwareInterface

Summary

Fully Qualified Name: Laminas\EventManager\EventManagerAwareInterface
Extends: EventsCapableInterface

Description

Interface to automate setter injection for an EventManager instance

Methods

Name Description Defined By
getEventManager() Retrieve the event manager EventsCapableInterface
setEventManager() Inject an EventManager instance EventManagerAwareInterface

Method Details

getEventManager()

Retrieve the event manager

Lazy-loads an EventManager instance if none registered.

Returns: \EventManagerInterface

setEventManager()

Inject an EventManager instance

Parameter Name Type Description
$eventManager \EventManagerInterface

Returns: void

Top