summaryrefslogtreecommitdiff
path: root/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_7.php
blob: 203eb5b12e6b0edc2b2a869dde02115678b24b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

//Ensure questions do not output anything when input is non-interactive
return function (InputInterface $input, OutputInterface $output) {
    $output = new SymfonyStyle($input, $output);
    $output->title('Title');
    $output->askHidden('Hidden question');
    $output->choice('Choice question with default', array('choice1', 'choice2'), 'choice1');
    $output->confirm('Confirmation with yes default', true);
    $output->text('Duis aute irure dolor in reprehenderit in voluptate velit esse');
};