Support the ongoing development of Laravel.io →
IOC Queues
Last updated 4 months ago.
0

Did you bind the concrete class with the interface?

App::bind('Acme\Issues\IssuesInterface', 'Acme\Issues\BitbucketIssues');
Last updated 4 months ago.
0

cerbero90 said:

Did you bind the concrete class with the interface?

App::bind('Acme\Issues\IssuesInterface', 'Acme\Issues\BitbucketIssues');

Sure did - Have it setup within a service provider.

Last updated 4 months ago.
0

The first argument given to the push method is the name of the class that should be used to process the job, so try:

$issues = get_class(app('Acme\Issues\IssuesInterface'));
Queue::push($issues, [
  'message' => $e->getMessage(),
  'file' => $e->getFile(),
  'line' => $e->getLine(),
  'user' => Sentry::getUser()->account
]);
Last updated 4 months ago.
0

cerbero90 said:

The first argument given to the push method is the name of the class that should be used to process the job, so try:

$issues = get_class(app('Acme\Issues\IssuesInterface'));
Queue::push($issues, [
 'message' => $e->getMessage(),
 'file' => $e->getFile(),
 'line' => $e->getLine(),
 'user' => Sentry::getUser()->account
]);

Thank you very much! That did it!

Last updated 4 months ago.
0

Sign in to participate in this thread!

Cloudways

Your banner here too?

HuisingaWS huisingaws Joined 24 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.