Skip to content

[5.8] Ignore classes which are not instantiable during event discovery#29587

Merged
taylorotwell merged 1 commit intolaravel:5.8from
wgriffioen:5.8
Aug 15, 2019
Merged

[5.8] Ignore classes which are not instantiable during event discovery#29587
taylorotwell merged 1 commit intolaravel:5.8from
wgriffioen:5.8

Conversation

@wgriffioen
Copy link
Copy Markdown
Contributor

If you enable auto discovery of events and listeners, the framework tries to attach abstract classes and interfaces to the events, which triggers a BindingResolutionException with the following message:

Target [App\Listeners\AbstractListener] is not instantiable

With this pull request, an extra check is performed to make sure the listener is instantiable. This prevents a BindingResolutionException.

@taylorotwell taylorotwell merged commit ff9ff02 into laravel:5.8 Aug 15, 2019
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.

2 participants