interface EntityListenerResolver (View source)

A resolver is used to instantiate an entity listener.

Methods

void
clear(string $className = null)

Clear all instances from the set, or a specific class when given.

object
resolve(string $className)

Returns a entity listener instance for the given class name.

register(object $object)

Register a entity listener instance.

Details

void clear(string $className = null)

Clear all instances from the set, or a specific class when given.

Parameters

string $className The fully-qualified class name

Return Value

void

object resolve(string $className)

Returns a entity listener instance for the given class name.

Parameters

string $className The fully-qualified class name

Return Value

object An entity listener

register(object $object)

Register a entity listener instance.

Parameters

object $object An entity listener