Documentation

HandlerListManager
in package

Table of Contents

$allLists  : array<string|int, HandlerList>
$globalInstance  : HandlerListManager|null
getAll()  : array<string|int, HandlerList>
getListFor()  : HandlerList
Returns the HandlerList for listeners that explicitly handle this event.
global()  : self
unregisterAll()  : void
Unregisters all the listeners If a Plugin or Listener is passed, all the listeners with that object will be removed
isValidClass()  : bool
resolveNearestHandleableParent()  : ReflectionClass|null

Properties

Methods

getListFor()

Returns the HandlerList for listeners that explicitly handle this event.

public getListFor(string $event) : HandlerList

Calling this method also lazily initializes the $classMap inheritance tree of handler lists.

Parameters
$event : string
Tags
phpstan-template

TEvent of Event

phpstan-param

class-string<TEvent> $event

throws
ReflectionException
throws
InvalidArgumentException
Return values
HandlerList

isValidClass()

private static isValidClass(ReflectionClass $class) : bool
Parameters
$class : ReflectionClass
Tags
phpstan-param

\ReflectionClass<Event> $class

Return values
bool

resolveNearestHandleableParent()

private static resolveNearestHandleableParent(ReflectionClass $class) : ReflectionClass|null
Parameters
$class : ReflectionClass
Tags
phpstan-param

\ReflectionClass<Event> $class

phpstan-return

\ReflectionClass<Event>|null

Return values
ReflectionClass|null

Search results