45 lines
872 B
PHP
45 lines
872 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Library\VK\Service\VkPostImportService;
|
|
use Illuminate\Console\Command;
|
|
|
|
class VkCheckStatus extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'app:vk-check-status';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Command description';
|
|
|
|
public function __construct(
|
|
protected VkPostImportService $import_service
|
|
) {
|
|
parent::__construct();
|
|
}
|
|
/**
|
|
* Execute the console command.
|
|
*/
|
|
public function handle()
|
|
{
|
|
$this->import_service->run();
|
|
|
|
|
|
|
|
//
|
|
// unset($result['response'][0]['attachments']);
|
|
// unset($result['response'][0]['copy_history'][0]['attachments']);
|
|
// print_r($result);
|
|
|
|
}
|
|
}
|