class AttachEntityListenersListener (View source)

Mechanism to programmatically attach entity listeners.

Methods

void
addEntityListener($entityClass, $listenerClass, $eventName, $listenerCallback = null)

Adds a entity listener for a specific entity.

void
loadClassMetadata(LoadClassMetadataEventArgs $event)

Processes event and attach the entity listener.

Details

void addEntityListener($entityClass, $listenerClass, $eventName, $listenerCallback = null)

Adds a entity listener for a specific entity.

Parameters

$entityClass
$listenerClass
$eventName
$listenerCallback

Return Value

void

void loadClassMetadata(LoadClassMetadataEventArgs $event)

Processes event and attach the entity listener.

Parameters

LoadClassMetadataEventArgs $event

Return Value

void