DialogHelper deprecated::askConfirmation()

bool askConfirmation(OutputInterface $output, string|array $question, bool $default = true) Asks a confirmation to the user. The question will be asked until the user answers by nothing, yes, or no. Parameters OutputInterface $output An Output instance string|array $question The question to ask bool $default The default answer if the user enters nothing Return Value bool true if the user has confirmed, false otherwise

DialogHelper deprecated::askAndValidate()

mixed askAndValidate(OutputInterface $output, string|array $question, callable $validator, int|false $attempts = false, string $default = null, array $autocomplete = null) Asks for a value and validates the response. The validator receives the data to validate. It must return the validated data when the data is valid and throw an exception otherwise. Parameters OutputInterface $output An Output instance string|array $question The question to ask callable $validator A PHP callba

DialogHelper deprecated::ask()

string ask(OutputInterface $output, string|array $question, string $default = null, array $autocomplete = null) Asks a question to the user. Parameters OutputInterface $output An Output instance string|array $question The question to ask string $default The default answer if none is given by the user array $autocomplete List of values to autocomplete Return Value string The user answer Exceptions RuntimeException If there is no data to read in the input stream

DialogHelper deprecated

class DialogHelper extends InputAwareHelper deprecated since version 2.5, to be removed in 3.0. Use {@link \Symfony\Component\Console\Helper\QuestionHelper} instead. The Dialog class provides helpers to interact with the user. Methods setHelperSet(HelperSet $helperSet = null) Sets the helper set associated with this helper. from Helper HelperSet getHelperSet() Gets the helper set associated with this helper. from Helper static int strlen(string $string) Returns the length of

DescriptorInterface

interface DescriptorInterface Descriptor interface. Methods describe(OutputInterface $output, object $object, array $options = array()) Describes an InputArgument instance. Details describe(OutputInterface $output, object $object, array $options = array()) Describes an InputArgument instance. Parameters OutputInterface $output object $object array $options

DescriptorHelper::register()

DescriptorHelper register(string $format, DescriptorInterface $descriptor) Registers a descriptor. Parameters string $format DescriptorInterface $descriptor Return Value DescriptorHelper

DescriptorHelper::getName()

string getName() Returns the canonical name of this helper. Return Value string The canonical name

DescriptorHelper::describe()

describe(OutputInterface $output, object $object, array $options = array()) Describes an object if supported. Available options are: * format: string, the output format name * raw_text: boolean, sets output type as raw Parameters OutputInterface $output object $object array $options Exceptions InvalidArgumentException when the given format is not supported

DescriptorHelper

class DescriptorHelper extends Helper This class adds helper method to describe objects in various formats. Methods setHelperSet(HelperSet $helperSet = null) Sets the helper set associated with this helper. from Helper HelperSet getHelperSet() Gets the helper set associated with this helper. from Helper static int strlen(string $string) Returns the length of a string, using mb_strwidth if it is available. from Helper static formatTime($secs) from Helper static formatMemo

DescriptorHelper

class DescriptorHelper extends DescriptorHelper Methods setHelperSet(HelperSet $helperSet = null) Sets the helper set associated with this helper. from Helper HelperSet getHelperSet() Gets the helper set associated with this helper. from Helper static int strlen(string $string) Returns the length of a string, using mb_strwidth if it is available. from Helper static formatTime($secs) from Helper static formatMemory($memory) from Helper static strlenWithoutDecoration(Ou