Magestead\Command\Index\ShowModeCommand::execute PHP Метод

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : ProcessCommand | null
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Результат Magestead\Command\ProcessCommand | null
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $index = $input->getArgument('index');
        $command = $this->getCommand(new Config($output), $index);
        if ($command) {
            $output->writeln('<info>Getting index mode</info>');
            $passedCommand = "vagrant ssh -c '" . $command . "'";
            return new ProcessCommand($passedCommand, $this->_projectPath, $output);
        }
        $output->writeln('<error>Command not available for this application</error>');
    }