Closed LauerPaul closed 5 years ago
Hey @LauerPaul , did you try to run php artisan bowler:consume queue-name-here
?
Hey @harris21, Thanks for the quick response. I thought he should work with the laravel queue. I tried your variant, but there is some kind of error. I want to understand how I can run the queue listener.
Symfony\Component\Debug\Exception\FatalThrowableError : Argument 1 passed to Vinelab\Bowler\Exceptions\Handler::__construct() must implement interface Vinelab\Bowler\Contracts\BowlerExceptionHandler, instance of App\Exceptions\Handler given
Hey @harris21, Thanks for the quick response. I thought he should work with the laravel queue. I tried your variant, but there is some kind of error. I want to understand how I can run the queue listener.
Symfony\Component\Debug\Exception\FatalThrowableError : Argument 1 passed to Vinelab\Bowler\Exceptions\Handler::__construct() must implement interface Vinelab\Bowler\Contracts\BowlerExceptionHandler, instance of App\Exceptions\Handler given
php artisan bowler:consume auth_service
@LauerPaul
Please add to your Exceptions/Handler.php
the implements BowlerExceptionHandler
like it is being mentioned in the docs https://github.com/Vinelab/bowler#error-reporting and implement the following function in the same file: reportQueue(Exception $e, AMQPMessage $msg)
.
Let me know if this worked for you.
Thanks for the help, added the line
use PhpAmqpLib\Message\AMQPMessage;
use Vinelab\Bowler\Contracts\BowlerExceptionHandler;
edit class Handler extends ExceptionHandler implements BowlerExceptionHandler
and it all worked!
I can not run
php artisan queue:work