44 lines
884 B
PHP
44 lines
884 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Illuminate\Console\Command;
|
|
use App\Http\Controllers\HolidaysController;
|
|
class ProcessHolidayAlert extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'holidayalerts:send';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Send Upcoming Holiday Alerts to team members';
|
|
|
|
/**
|
|
* Create a new command instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(HolidaysController $hoidays_alerts)
|
|
{
|
|
parent::__construct();
|
|
$this->hoidays_alerts = $hoidays_alerts;
|
|
}
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function handle()
|
|
{
|
|
$this->hoidays_alerts->getHolidayDetails();
|
|
}
|
|
}
|