aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/plugin/fixtures/e2e-script-command/src/MismatchedNameCommand.php
blob: f3f6b05f7221ce4463072f4480b1203860c3a98f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace ShirabeTest\ScriptCommand;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class MismatchedNameCommand extends Command
{
    protected function configure(): void
    {
        $this->setName('not-the-script-name');
    }

    protected function execute(InputInterface $input, OutputInterface $output): int
    {
        $output->writeln('renamed: name=' . $this->getName());
        $output->writeln('renamed: description=' . $this->getDescription());

        return 0;
    }
}