BearFramework\App\DataRepository::addEventListener

Registers a new event listener.
public self addEventListener string $name , callable $listener )
Parameters
name
The name of the event.
listener
A listener callback.
Returns
Returns a reference to itself.
Details
Location: ~/src/App/DataRepository.php
The information on this page is created for version 1.1 of Bear Framework and may not be applicable for other versions of the framework.