Revert "Extract extraArgs
and workingDir
"
This reverts commit ee709b2966
.
This commit is contained in:
parent
01854538d4
commit
084f6fb3c7
5 changed files with 28 additions and 36 deletions
|
@ -4,15 +4,9 @@ namespace App\Console\Command;
|
|||
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
abstract class AbstractCommand extends Command
|
||||
{
|
||||
protected ?string $extraArgs;
|
||||
|
||||
protected string $workingDir;
|
||||
|
||||
protected function configure(): void
|
||||
{
|
||||
$this->addOption(
|
||||
|
@ -38,12 +32,4 @@ abstract class AbstractCommand extends Command
|
|||
default: '.',
|
||||
);
|
||||
}
|
||||
|
||||
public function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
$this->extraArgs = $input->getOption('extra-args');
|
||||
$this->workingDir = $input->getOption('working-dir');
|
||||
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue