Events
class Events
Supports operations related to Events/Listeners.
Constants
| private EVENT_PATH |
Path for event classes. |
| private LISTENER_PATH |
Path for listener classes. |
| private PROVIDER_PATH |
Path for provider classes. |
Methods
static int
makeEvent(string $eventName, bool $queue = false)
Creates a new event class.
static int
makeEventServiceProvider(string $providerName)
Creates a new event service provider.
static int
makeListener(string $eventName, string $listenerName, bool $queue = false)
Creates a new listener class.
static bool
verifyListenerParams(string $eventName, string $listenerName)
Checks if $eventName and $listerName was provided and that they are not the same.
Details
at line 32
static int
makeEvent(string $eventName, bool $queue = false)
Creates a new event class.
at line 49
static int
makeEventServiceProvider(string $providerName)
Creates a new event service provider.
at line 68
static int
makeListener(string $eventName, string $listenerName, bool $queue = false)
Creates a new listener class.
at line 88
static bool
verifyListenerParams(string $eventName, string $listenerName)
Checks if $eventName and $listerName was provided and that they are not the same.