ldc-boutique-cnc/app/Console/Commands/RefreshSiteMap.php

38 lines
789 B
PHP
Raw Permalink Normal View History

2021-05-04 11:51:03 +02:00
<?php
namespace App\Console\Commands;
use App\Jobs\RefreshSiteMap as JobsRefreshSiteMap;
use Illuminate\Console\Command;
class RefreshSiteMap extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'sitemap:refresh';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Run the RefreshSiteMapJob manually';
/**
* Execute the console command.
*
2022-09-03 16:56:16 +02:00
* @return void
2021-05-04 11:51:03 +02:00
*/
public function handle()
{
$this->info('Running the Job, this could take some time.');
2022-08-25 12:26:43 +02:00
$job = new JobsRefreshSiteMap();
2021-05-04 11:51:03 +02:00
$job->console = $this;
$job->handle();
$this->info('Job completed');
}
}