PHP Класс Composer\Satis\Console\Command\InitCommand

Автор: Sergey Kolodyazhnyy ([email protected])
Наследование: extends Composer\Command\BaseCommand
Показать файл Открыть проект

Защищенные методы

Метод Описание
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer Generate configuration file
getQuestion ( string $prompt, string $default ) : Symfony\Component\Console\Question\Question Build a question
initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Print welcome message
interact ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Interact with user
prompt ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, string $prompt, string $optionName, callable $validator ) Prompt for an input option.

Описание методов

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

protected configure ( )

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

Generate configuration file
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$input Symfony\Component\Console\Input\InputInterface The input instance
$output Symfony\Component\Console\Output\OutputInterface The output instance
Результат integer

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

Build a question
protected getQuestion ( string $prompt, string $default ) : Symfony\Component\Console\Question\Question
$prompt string
$default string
Результат Symfony\Component\Console\Question\Question

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

Print welcome message
protected initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

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

Interact with user
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

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

Prompt for an input option.
protected prompt ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, string $prompt, string $optionName, callable $validator )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$prompt string
$optionName string For the default value and where the answer is set
$validator callable