Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleResumeCommand.php
Строк: 53
<?php

namespace IlluminateConsoleScheduling;

use 
IlluminateConsoleCommand;
use 
IlluminateConsoleEventsScheduleResumed;
use 
IlluminateContractsCacheRepository as Cache;
use 
IlluminateContractsEventsDispatcher;
use 
SymfonyComponentConsoleAttributeAsCommand;

#[AsCommand(name: 'schedule:resume', aliases: ['schedule:continue'])]
class ScheduleResumeCommand extends Command
{
    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Resume the schedule';

    
/**
     * The console command name aliases.
     *
     * @var list<string>
     */
    
protected $aliases = ['schedule:continue'];

    
/**
     * Execute the console command.
     *
     * @return int
     */
    
public function handle(Cache $cacheDispatcher $dispatcher)
    {
        
$cache->forget('illuminate:schedule:paused');

        
$dispatcher->dispatch(new ScheduleResumed);

        
$this->components->info('Scheduled task processing has resumed.');

        return 
0;
    }
}
Онлайн: 2
Реклама