DiscoverEvents
class DiscoverEvents (View source)
Methods
static array
within(string $listenerPath, string $basePath)
Get all of the events and listeners by searching the given listener directory.
static array
getListenerEvents(iterable $listeners, string $basePath)
Get all of the listeners and their corresponding events.
static string
Details
static array
within(string $listenerPath, string $basePath)
Get all of the events and listeners by searching the given listener directory.
static protected array
getListenerEvents(iterable $listeners, string $basePath)
Get all of the listeners and their corresponding events.
static protected string
classFromFile(SplFileInfo $file, string $basePath)
Extract the class name from the given file path.