class Illuminate / Foundation / Support / Providers / EventServiceProvider
You are viewing an older version of the documentation. For the latest, please visit master documentation.

EventServiceProvider

Extends

Properties

protected

$listen array

The event handler mappings for the application.

Default: []
protected

$subscribe array

The subscriber classes to register.

Default: []

Methods

public

register ( ) : void

Register the application's event listeners.

public

boot ( ) : void

Boot any application services.

public

listens ( ) : array

Get the events and handlers.

public

getEvents ( ) : array

Get the discovered events and listeners for the application.

protected

discoveredEvents ( ) : array

Get the discovered events for the application.

public

shouldDiscoverEvents ( ) : bool

Determine if events and listeners should be automatically discovered.

public

discoverEvents ( ) : array

Discover the events and listeners for the application.

protected

discoverEventsWithin ( ) : array

Get the listener directories that should be used to discover events.

protected

eventDiscoveryBasePath ( ) : string

Get the base path to be used during event discovery.