Closed patrickbrouwers closed 7 years ago
$builder->listen()->onFlush(TestEventListener::class, 'onFlush');
Supports all lifecycle events + defaults to the event name as method name, in case no method name is given.
$builder->listen()->onFlush(TestEventListener::class'); -> will call TestEventListener@onFlush
$builder->listen()->onFlush(TestEventListener::class');
TestEventListener@onFlush
$builder->listen()->onFlush(TestEventListener::class, 'onFlush');
Supports all lifecycle events + defaults to the event name as method name, in case no method name is given.
$builder->listen()->onFlush(TestEventListener::class');
-> will callTestEventListener@onFlush