class Factory (View source)

Properties

protected OutputStyle $output

The output interface implementation.

Methods

void
__construct(OutputStyle $output)

Creates a new factory instance.

mixed
__call(string $method, array $parameters)

Dynamically handle calls into the component instance.

void
alert(string $string, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

mixed
ask(string $question, string $default = null)

No description

mixed
askWithCompletion(string $question, array|callable $choices, string $default = null)

No description

void
bulletList(array $elements, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

mixed
choice(string $question, array $choices, mixed $default, int $attempts = null, bool $multiple = false)

No description

bool
confirm(string $question, bool $default = false)

No description

void
error(string $string, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

void
info(string $string, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

void
line(string $style, string $string, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

void
task(string $description, ?callable $task = null, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

void
twoColumnDetail(string $first, ?string $second = null, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

void
warn(string $string, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

Details

void __construct(OutputStyle $output)

Creates a new factory instance.

Parameters

OutputStyle $output

Return Value

void

mixed __call(string $method, array $parameters)

Dynamically handle calls into the component instance.

Parameters

string $method
array $parameters

Return Value

mixed

Exceptions

InvalidArgumentException

void alert(string $string, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

Parameters

string $string
int $verbosity

Return Value

void

mixed ask(string $question, string $default = null)

No description

Parameters

string $question
string $default

Return Value

mixed

mixed askWithCompletion(string $question, array|callable $choices, string $default = null)

No description

Parameters

string $question
array|callable $choices
string $default

Return Value

mixed

void bulletList(array $elements, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

Parameters

array $elements
int $verbosity

Return Value

void

mixed choice(string $question, array $choices, mixed $default, int $attempts = null, bool $multiple = false)

No description

Parameters

string $question
array $choices
mixed $default
int $attempts
bool $multiple

Return Value

mixed

bool confirm(string $question, bool $default = false)

No description

Parameters

string $question
bool $default

Return Value

bool

void error(string $string, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

Parameters

string $string
int $verbosity

Return Value

void

void info(string $string, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

Parameters

string $string
int $verbosity

Return Value

void

void line(string $style, string $string, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

Parameters

string $style
string $string
int $verbosity

Return Value

void

void task(string $description, ?callable $task = null, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

Parameters

string $description
?callable $task
int $verbosity

Return Value

void

void twoColumnDetail(string $first, ?string $second = null, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

Parameters

string $first
?string $second
int $verbosity

Return Value

void

void warn(string $string, int $verbosity = \Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL)

No description

Parameters

string $string
int $verbosity

Return Value

void