1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00
invoiceninja/app/Jobs/Job.php
2019-01-30 22:25:37 +11:00

48 lines
1.0 KiB
PHP

<?php
namespace App\Jobs;
use App\Ninja\Mailers\ContactMailer;
use Illuminate\Bus\Queueable;
use Monolog\Logger;
abstract class Job
{
use Queueable;
/**
* The name of the job.
*
* @var string
*/
protected $jobName;
/*
* Handle a job failure.
*
* @param ContactMailer $mailer
* @param Logger $logger
*/
/*
protected function failed(ContactMailer $mailer, Logger $logger)
{
if(config('queue.failed.notify_email')) {
$mailer->sendTo(
config('queue.failed.notify_email'),
config('mail.from.address'),
config('mail.from.name'),
config('queue.failed.notify_subject', trans('texts.job_failed', ['name'=>$this->jobName])),
'job_failed',
[
'name' => $this->jobName,
]
);
}
$logger->error(
trans('texts.job_failed', ['name' => $this->jobName])
);
}
*/
}