35 lines
687 B
PHP
35 lines
687 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace App\Command;
|
||
|
|
|
||
|
|
use Hyperf\Command\Command as HyperfCommand;
|
||
|
|
use Hyperf\Command\Annotation\Command;
|
||
|
|
use Psr\Container\ContainerInterface;
|
||
|
|
use App\Platform\Tools\Request\CompanyRequest;
|
||
|
|
use App\Model\Company;
|
||
|
|
use Hyperf\DbConnection\Db;
|
||
|
|
use App\Utils\Log;
|
||
|
|
use Exception;
|
||
|
|
|
||
|
|
#[Command]
|
||
|
|
class AppQueuePushKm extends HyperfCommand
|
||
|
|
{
|
||
|
|
public function __construct(protected ContainerInterface $container)
|
||
|
|
{
|
||
|
|
parent::__construct('app:queue-push:km');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function configure()
|
||
|
|
{
|
||
|
|
parent::configure();
|
||
|
|
$this->setDescription('Test push message with KM data');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function handle()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|