class
Illuminate
/
Foundation
/
Events
/
DiscoverEvents
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
DiscoverEvents
Properties
public
static
$guessClassNamesUsingCallback callable
The callback to be used to guess class names.
string|null
Default: null
Methods
public
static
within ( $listenerPath , $basePath ) : array
Get all of the events and listeners by searching the given listener directory.
Parameters
- $listenerPath string
- $basePath string
protected
static
getListenerEvents ( $listeners , $basePath ) : array
Get all of the listeners and their corresponding events.
Parameters
- $listeners iterable
- $basePath string
protected
static
classFromFile ( SplFileInfo $file , $basePath ) : string
Extract the class name from the given file path.
Parameters
- $file SplFileInfo
- $basePath string
public
static
guessClassNamesUsing ( callable $callback ) : void
Specify a callback to be used to guess class names.
Parameters
-
$
callable
string $callback