Skip to content

Commit

Permalink
Remove extra code from event list (#35221)
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 authored Nov 15, 2020
1 parent 7780cd2 commit e2dea14
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Illuminate/Foundation/Console/EventListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Closure;
use Illuminate\Console\Command;
use Illuminate\Foundation\Support\Providers\EventServiceProvider;
use Illuminate\Support\Str;
use ReflectionFunction;

Expand Down Expand Up @@ -58,12 +57,6 @@ protected function getEvents()
{
$events = [];

foreach ($this->laravel->getProviders(EventServiceProvider::class) as $provider) {
$providerEvents = array_merge_recursive($provider->shouldDiscoverEvents() ? $provider->discoverEvents() : [], $provider->listens());

$events = array_merge_recursive($events, $providerEvents);
}

$events = $this->addListenersOnDispatcher($events);

if ($this->filteringByEvent()) {
Expand Down

0 comments on commit e2dea14

Please sign in to comment.