Файл: vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleInterruptCommand.php
Строк: 69
<?php
namespace IlluminateConsoleScheduling;
use IlluminateConsoleCommand;
use IlluminateContractsCacheRepository as Cache;
use IlluminateSupportFacadesDate;
use SymfonyComponentConsoleAttributeAsCommand;
#[AsCommand(name: 'schedule:interrupt')]
class ScheduleInterruptCommand extends Command
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'schedule:interrupt';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Interrupt the current schedule run';
/**
* The cache store implementation.
*
* @var IlluminateContractsCacheRepository
*/
protected $cache;
/**
* Create a new schedule interrupt command.
*
* @param IlluminateContractsCacheRepository $cache
* @return void
*/
public function __construct(Cache $cache)
{
parent::__construct();
$this->cache = $cache;
}
/**
* Execute the console command.
*
* @return void
*/
public function handle()
{
$this->cache->put('illuminate:schedule:interrupt', true, Date::now()->endOfMinute());
$this->components->info('Broadcasting schedule interrupt signal.');
}
}