47 lines
1011 B
PHP
47 lines
1011 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Illuminate\Console\Command;
|
|
use App\Http\Controllers\ContractRenewalReminderController;
|
|
|
|
class SendContractRenewalReminders extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'renewal:send';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Send notices on pending contract renewals';
|
|
|
|
/**
|
|
* Create a new command instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(ContractRenewalReminderController $contractRenewalReminder)
|
|
{
|
|
parent::__construct();
|
|
$this->contractRenewalReminder = $contractRenewalReminder;
|
|
}
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function handle()
|
|
{
|
|
|
|
$this->contractRenewalReminder->getMnos();
|
|
\Log::info('SendContractRenewalReminders command completed...');
|
|
}
|
|
}
|