2025-04-08 23:00:21 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Loom\Spinner\Command;
|
|
|
|
|
2025-04-12 10:47:55 +01:00
|
|
|
use Loom\Spinner\Helper\System;
|
2025-04-08 23:00:21 +01:00
|
|
|
use Symfony\Component\Console\Command\Command;
|
|
|
|
use Symfony\Component\Console\Input\InputInterface;
|
|
|
|
use Symfony\Component\Console\Output\OutputInterface;
|
|
|
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
|
|
|
|
|
|
|
class AbstractSpinnerCommand extends Command
|
|
|
|
{
|
|
|
|
protected SymfonyStyle $style;
|
2025-04-12 10:47:55 +01:00
|
|
|
protected System $system;
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this->system = new System();
|
|
|
|
|
|
|
|
parent::__construct();
|
|
|
|
}
|
2025-04-08 23:00:21 +01:00
|
|
|
|
|
|
|
protected function setStyle(InputInterface $input, OutputInterface $output): void
|
|
|
|
{
|
|
|
|
$this->style = new SymfonyStyle($input, $output);
|
|
|
|
}
|
|
|
|
}
|