class EventListener

Class Listener

Properties

protected Container $container Container instance

Methods

__construct(Container $container)

EventListener constructor.

void
subscribe(Dispatcher $dispatcher)

Register event listener

void
menuItemCreated(MenuItem $item)

Listen to item created

void
menuItemDeleted(MenuItem $item)

Listen to item deleted

Details

at line 45
__construct(Container $container)

EventListener constructor.

Parameters

Container $container Container instance

at line 56
void subscribe(Dispatcher $dispatcher)

Register event listener

Parameters

Dispatcher $dispatcher dispatcher instance

Return Value

void

at line 72
protected void menuItemCreated(MenuItem $item)

Listen to item created

Parameters

MenuItem $item menu item

Return Value

void

at line 85
protected void menuItemDeleted(MenuItem $item)

Listen to item deleted

Parameters

MenuItem $item menu item

Return Value

void