class ConfiguresPrompts (View source)

Laravel configures prompts in a trait, so we do too to keep code aligned.

This class exists to use the trait and define its dependent class properties.

Traits

Methods

void
configurePrompts(InputInterface $input)

Configure the prompt fallbacks.

mixed
promptUntilValid(Closure $prompt, bool|string $required, Closure|null $validate)

Prompt the user until the given validation callback passes.

void
restorePrompts()

Restore the prompts output.

bool
runningUnitTests()

No description

__construct(InputInterface $input, OutputInterface $output)

No description

Details

void configurePrompts(InputInterface $input)

Configure the prompt fallbacks.

Parameters

InputInterface $input

Return Value

void

protected mixed promptUntilValid(Closure $prompt, bool|string $required, Closure|null $validate)

Prompt the user until the given validation callback passes.

Parameters

Closure $prompt
bool|string $required
Closure|null $validate

Return Value

mixed

protected void restorePrompts()

Restore the prompts output.

Return Value

void

protected bool runningUnitTests()

No description

Return Value

bool

__construct(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output