StackFormation\Command\Stack\DeleteCommand::interact PHP Метод

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

protected interact ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function interact(InputInterface $input, OutputInterface $output)
    {
        $this->interactAskForStack($input, $output);
        if (!$input->getOption('force')) {
            $stacks = $this->getResolvedStacks($input);
            $stacks = "\n - " . implode("\n - ", $stacks) . "\n";
            $helper = $this->getHelper('question');
            $question = new ConfirmationQuestion("Are you sure you want to delete following stacks? {$stacks} [y/N] ", false);
            if (!$helper->ask($input, $output, $question)) {
                throw new \Exception('Operation aborted');
            }
            $input->setOption('force', true);
        }
    }