File: D:/HostingSpaces/debout/debout.nl/vendor/komma/kms/src/ArtisanCommands/UpdateGlobalisationData.php
<?php
namespace Komma\KMS\ArtisanCommands;
use Komma\KMS\Globalization\UpdateServices\UpdateServiceInterface;
use Illuminate\Console\Command;
class UpdateGlobalisationData extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'kms:g11n-update';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Tries to update the globalisation data.';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->info('Running globalisation update...');
$this->info('Please wait...');
/** @var UpdateServiceInterface $updater */
$updater = app(UpdateServiceInterface::class);
$updater->setOutputStyle($this->output);
$updater->doUpdate();
$this->info('globalisation update complete!');
}
}