Zend\ModuleManager\ModuleEvent
Custom event for use with module manager Composes Module objects
Synopsis
class ModuleEvent
extends Event
{
- // constants
- const EVENT_MERGE_CONFIG = 'mergeConfig';
- const EVENT_LOAD_MODULES = 'loadModules';
- const EVENT_LOAD_MODULE_RESOLVE = 'loadModule.resolve';
- const EVENT_LOAD_MODULE = 'loadModule';
- const EVENT_LOAD_MODULES_POST = 'loadModules.post';
- // members
- protected mixed $module;
- protected string $moduleName;
- protected ConfigMergerInterface $configListener;
- // Inherited members from Event
- protected string $name;
- protected string|object $target;
- protected array|ArrayAccess|object $params;
- protected bool $stopPropagation;
- // methods
- public string getModuleName()
- public ModuleEvent setModuleName()
- public null|object getModule()
- public ModuleEvent setModule()
- public ConfigMergerInterface getConfigListener()
- public ModuleEvent setConfigListener()
- // Inherited methods from Event
- public void __construct()
- public string getName()
- public string|object getTarget()
- public Event setParams()
- public array|object|ArrayAccess getParams()
- public mixed getParam()
- public Event setName()
- public Event setTarget()
- public Event setParam()
- public void stopPropagation()
- public bool propagationIsStopped()
Hierarchy
Extends
Constants
Name | Value |
---|---|
EVENT_MERGE_CONFIG | 'mergeConfig' |
EVENT_LOAD_MODULES | 'loadModules' |
EVENT_LOAD_MODULE_RESOLVE | 'loadModule.resolve' |
EVENT_LOAD_MODULE | 'loadModule' |
EVENT_LOAD_MODULES_POST | 'loadModules.post' |
Members
protected
- $configListener — Zend\ModuleManager\Listener\ConfigMergerInterface
- $module — mixed
- $moduleName — string
- $name — string
- $params — Zend\EventManager\array|ArrayAccess|object
- $stopPropagation — Zend\EventManager\bool
- $target — Zend\EventManager\string|object
Methods
public
- getConfigListener() — Get the config listener
- getModule() — Get module object
- getModuleName() — Get the name of a given module
- setConfigListener() — Set module object to compose in this event
- setModule() — Set module object to compose in this event
- setModuleName() — Set the name of a given module
Inherited from Zend\EventManager\Event
public
- getName() — Get event name
- getParam() — Get an individual parameter
- getParams() — Get all parameters
- getTarget() — Get the event target
- propagationIsStopped() — Is propagation stopped?
- setName() — Set the event name
- setParam() — Set an individual parameter to a value
- setParams() — Set parameters
- setTarget() — Set the event target/context
- stopPropagation() — Stop further event propagation