Skip to content

Conversation

@janhartigan
Copy link
Contributor

I'm in the process of hacking away the default service provider structure in a new L5 build since I'm not a big fan of declaring all of my events in a single place. While doing this, I ran across a weird thing...not sure if it should be counted as a bug.

In app.php, I replaced App\Providers\EventServiceProvider with Illuminate\Foundation\Support\Providers\EventServiceProvider, but when it gets here:

https://github.com/laravel/framework/blob/5.0/src/Illuminate/Foundation/Support/Providers/EventServiceProvider.php#L23

..it gets angry that $this->listen isn't an array. An easy fix would be to just define that $listen property on Illuminate\Foundation\Support\Providers\EventServiceProvider, but I'm not sure if what I'm doing is condoned behavior. As it stands, I have to create an EventServiceProvider class with just an empty $listen property in it, which seems a bit of a waste. Thanks!

taylorotwell added a commit that referenced this pull request Feb 18, 2015
Adding $listen array to base event service provider
@taylorotwell taylorotwell merged commit 5569215 into laravel:5.0 Feb 18, 2015
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