47 lines
849 B
PHP
47 lines
849 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands\MiningTaxes;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
use App\Jobs\Commands\MiningTaxes\FetchMiningTaxesObservers as FetchObservers;
|
|
|
|
class ExecuteMiningTaxesObserversCommand extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'mt:observer';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Dispatch a mining tax observer job.';
|
|
|
|
/**
|
|
* Create a new command instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function handle()
|
|
{
|
|
FetchObservers::dispatch();
|
|
|
|
return 0;
|
|
}
|
|
}
|