class Illuminate / Foundation / Events / DiscoverEvents

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

public static

guessClassNamesUsing ( callable $callback ) : void

Specify a callback to be used to guess class names.

Parameters

  • $ callable
    string $callback