Did you bind the concrete class with the interface?
App::bind('Acme\Issues\IssuesInterface', 'Acme\Issues\BitbucketIssues');
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.
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
]);
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!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community