class Illuminate / Foundation / Console / EventListCommand

EventListCommand

Extends

Properties

protected

$signature string

The name and signature of the console command.

Default: 'event:list {--event= : Filter the events by name}'
protected

$description string

The console command description.

Default: 'List the application's events and listeners'
protected static

$eventsResolver Closure |null

The events dispatcher resolver callback.

Default: null

Methods

public

handle ( ) : void

Execute the console command.

protected

getEvents ( ) : Illuminate\...\Collection

Get all of the events and listeners configured for the application.

protected

getListenersOnDispatcher ( ) : array

Get the event / listeners from the dispatcher object.

protected

appendEventInterfaces ( $event ) : string

Add the event implemented interfaces to the output.

Parameters

  • $event string
protected

appendListenerInterfaces ( $listener ) : string

Add the listener implemented interfaces to the output.

Parameters

  • $listener string
protected

stringifyClosure ( Closure $rawListener ) : string

Get a displayable string representation of a Closure listener.

Parameters

protected

filterEvents ( $events ) : Illuminate\...\Collection

Filter the given events using the provided event name filter.

Parameters

  • $events Illuminate\...\Collection
protected

filteringByEvent ( ) : bool

Determine whether the user is filtering by an event name.

protected

getRawListeners ( ) : array

Gets the raw version of event listeners from the event dispatcher.

public

getEventsDispatcher ( ) : Dispatcher

Get the event dispatcher.

public static

resolveEventsUsing ( $resolver ) : void

Set a callback that should be used when resolving the events dispatcher.

Parameters