PsrContext not instantiable
Closed this issue · 2 comments
corradomatt commented
While playing with this library I've run into the following exception...
Illuminate\Contracts\Container\BindingResolutionException thrown with message "Target [Interop\Queue\PsrContext] is not instantiable while building [Nuwber\Events\BroadcastFactory]."
I've following the instructions on the README.md and done the following...
- Installed the package with
composer require nuwber/rabbitevents
- Created
RabbitMQEventServiceProvider
that extendsNuwber\Events\BroadcastEventServiceProvider
- Registered the following with my app service providers...
\App\Providers\RabbitMQEventServiceProvider::class, \Enqueue\LaravelQueue\EnqueueServiceProvider::class,
- Setup the queue driver for
interop
and set it as the default.
This is version 5.5 of Laravel. Any ideas what I'm missing or what might be wrong?
masterjus commented
@corradomatt
it is registering in https://github.com/nuwber/rabbitevents/blob/master/src/BroadcastEventServiceProvider.php#L60
Seems like you overriding register
method and don't call parent::register
in your RabbitMQEventServiceProvider.
masterjus commented
Closed as there's no answer