57 lines
1.3 KiB
PHP
Executable File
57 lines
1.3 KiB
PHP
Executable File
<?php
|
|
|
|
namespace Modules\M3\Console;
|
|
|
|
use Config;
|
|
use Illuminate\Console\Command;
|
|
use Illuminate\Http\Request;
|
|
use Log;
|
|
use Modules\M3\Http\Controllers\UtilitiesController;
|
|
|
|
class UtilitiesCmd extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'command:UtilitiesCmd';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Utilities Command';
|
|
|
|
/**
|
|
* Create a new command instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function handle(): void
|
|
{
|
|
ini_set('max_execution_time', Config::get('arrays.PHPTimeOutCL'));
|
|
ini_set('max_input_time', Config::get('arrays.PHPTimeOutCL'));
|
|
ini_set('default_socket_timeout', Config::get('arrays.PHPTimeOutCL'));
|
|
ini_set('memory_limit', '1024M');
|
|
|
|
try {
|
|
$this->info('Start Utilities Command...');
|
|
|
|
$myRequest = new Request;
|
|
UtilitiesController::fixICM799MSentPKR($myRequest);
|
|
|
|
$this->info('End Utilities Command...');
|
|
|
|
} catch (\Throwable $th) {
|
|
Log::channel('dailyCron')->error($th);
|
|
}
|
|
}
|
|
}
|