class InputHandler extends InputHandler (View source)

Generators input handler.

Methods

collectVars(InputInterface $input, OutputInterface $output, array $questions, array $vars = [])

{@inheritdoc}

preprocessQuestions(array $questions, string $destination)

Modifies questions for better DX.

string
getDirectory(array $vars, string|bool $destination)

Defines the directory where generated files should be dumped.

Details

collectVars(InputInterface $input, OutputInterface $output, array $questions, array $vars = [])

{@inheritdoc}

Parameters

InputInterface $input
OutputInterface $output
array $questions
array $vars

protected preprocessQuestions(array $questions, string $destination)

Modifies questions for better DX.

Parameters

array $questions List of questions to modify.
string $destination The destination for dumped files.

protected string getDirectory(array $vars, string|bool $destination)

Defines the directory where generated files should be dumped.

Parameters

array $vars Collected variables.
string|bool $destination The destination for dumped files.

Return Value

string $directory The directory to dump file or false it cannot be determined.