Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.8] Add event:list command #28085

Merged
merged 2 commits into from
Apr 1, 2019
Merged

Conversation

themsaid
Copy link
Member

@themsaid themsaid commented Apr 1, 2019

This PR adds a event:list artisan command which lists all the events discovered in your application and the list of listeners.

Screen Shot 2019-04-01 at 8 27 40 PM

$events = [];

foreach ($this->laravel->getProviders(EventServiceProvider::class) as $provider) {
$providerEvents = array_merge($provider->discoverEvents(), $provider->listens());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we be calling $provider->discoveredEvents() here? I am seeing discovered events in event:list even with event auto-discovery disabled.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping @themsaid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants