32 lines
627 B
PHP
32 lines
627 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;
|
|
|
|
#[Command]
|
|
class AppCompanySync extends HyperfCommand
|
|
{
|
|
public function __construct(protected ContainerInterface $container)
|
|
{
|
|
parent::__construct('app:company:sync');
|
|
}
|
|
|
|
public function configure()
|
|
{
|
|
parent::configure();
|
|
$this->setDescription('Sync companies from Tools Dashboard');
|
|
}
|
|
|
|
public function handle()
|
|
{
|
|
$companies =
|
|
|
|
$this->line('Hello Hyperf!', 'info');
|
|
}
|
|
}
|