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

UserServiceProvider and EventServiceProvider #11

Open
LukasJK opened this issue Apr 23, 2017 · 1 comment
Open

UserServiceProvider and EventServiceProvider #11

LukasJK opened this issue Apr 23, 2017 · 1 comment

Comments

@LukasJK
Copy link

LukasJK commented Apr 23, 2017

Hey!
Just a quick one - UserServiceProvider references
use Infrastructure\Events\EventServiceProvider;
which does not seem to exist?

@gruz
Copy link

gruz commented May 3, 2017

class UserServiceProvider extends EventServiceProvider

But this would not work, since it doesn't know EventServiceProvider

So I had to replace
use Infrastructure\Events\EventServiceProvider;
with
use Illuminate\Foundation\Support\Providers\EventServiceProvider;
in api/Users/UserServiceProvider.php

And also had to add the provider to config/app.php

The other way is to add file infrastructure/Events/EventServiceProvider.php with code

<?php

namespace Infrastructure\Events;

use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
}

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

No branches or pull requests

2 participants