Open olivertappin opened 4 years ago
After further testing, it seems Illuminate\Queue\Jobs\Job
is the class in question, and you must implement the getRawBody
and getJobId
to satisfy the requirements of the abstract
class. I will open a PR to reflect these changes on the README.md file.
Given the example shown within the README.md file, we are given the following code snippet under Receiving from SQS:
However, it's not clear what class the
HandlerJob
class is extending. We are just presented withJob
.We can see that:
Illuminate\Contracts\Queue\Job
is already has an alias (and is aninterface
), so it's not going to be using that class.Illuminate\Queue\Jobs\Job
is another potential, but that requires us to declare two methods declared in theabstract
class:getRawBody
andgetJobId
.Illuminate\Queue\Jobs\SqsJob
which seems like a potential match, throws an error when attempting to be consumed:So I'm a little confused with how this example should be working to receive messages from the SQS queue, and allow the handler to work on them.
Any suggestions would be helpful.