You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument 1 passed to Anik\Laravel\Amqp\AmqpManager::__construct() must be an instance of Illuminate\Contracts\Foundation\Application, instance of Laravel\Lumen\Application given
#2
Closed
kksffn opened this issue
Feb 7, 2022
· 3 comments
· Fixed by #3
I try to use laravel-amqp with laravel/lumen api. When I try to publish a message (```` Amqp::publish($messages)```) I get the exception:
Argument 1 passed to Anik\Laravel\Amqp\AmqpManager::__construct() must be an instance of Illuminate\Contracts\Foundation\Application, instance of Laravel\Lumen\Application given.
Rewriting constructor of AmqpManager to __construct(Illuminate\Contracts\Foundation\Application $app) "solves" the problem.
The text was updated successfully, but these errors were encountered:
I try to use laravel-amqp with laravel/lumen api. When I try to publish a message (```` Amqp::publish($messages)```) I get the exception:
Argument 1 passed to Anik\Laravel\Amqp\AmqpManager::__construct() must be an instance of Illuminate\Contracts\Foundation\Application, instance of Laravel\Lumen\Application given.
Rewriting constructor of AmqpManager to __construct(Illuminate\Contracts\Foundation\Application $app) "solves" the problem.
The text was updated successfully, but these errors were encountered: