ForgetFailedCommand
класс ForgetFailedCommand расширяет Command (View source)
Черты
| CallsCommands | |
| HasParameters | |
| InteractsWithIO | |
| Macroable |
Свойства
| protected InputInterface | $input | Реализация интерфейса ввода. | из InteractsWithIO |
| protected OutputStyle | $output | Реализация интерфейса вывода. | из InteractsWithIO |
| protected int | $verbosity | Уровень подробности вывода команд по умолчанию. | из InteractsWithIO |
| protected array | $verbosityMap | Сопоставление уровней подробности, понятных человеку, и OutputInterface Symfony. | из InteractsWithIO |
| static protected array | $macros | Зарегистрированные строковые макросы. | из Macroable |
| protected Application | $laravel | Экземпляр приложения Laravel. | из Command |
| protected string | $signature | Подпись команды консоли. | |
| protected string | $name | Имя команды консоли. | из Command |
| protected string | $description | Описание команды консоли. | |
| protected string | $help | Текст справки по команде консоли. | из Command |
| $hidden | Указывает, следует ли отображать команду в списке команд Artisan. | из Command |
Методы
| Command | resolveCommand(Command|string $command)
Разрешить экземпляр консольной команды для данной команды. | from CallsCommands |
| int | call(Command|string $command, array $arguments = [])
Вызвать другую консольную команду. | from CallsCommands |
| int | callSilent(Command|string $command, array $arguments = [])
Вызвать другую консольную команду без вывода. | from CallsCommands |
| int | callSilently(Command|string $command, array $arguments = [])
Вызвать другую консольную команду без вывода. | from CallsCommands |
| int | runCommand(Command|string $command, array $arguments, OutputInterface $output)
Запустить данную консольную команду. | from CallsCommands |
| ArrayInput | createInputFromArguments(array $arguments)
Создать экземпляр ввода из заданных аргументов. | from CallsCommands |
| array | context()
Получить весь контекст, переданный в команду. | from CallsCommands |
| void | specifyParameters()
Указать аргументы и опции команды. | from HasParameters |
| array | getArguments()
Получить аргументы консольной команды. | from HasParameters |
| array | getOptions()
Получить опции консольной команды. | from HasParameters |
| bool | hasArgument(string|int $name)
Определить, присутствует ли данный аргумент. | from InteractsWithIO |
| string|array|null | argument(string|null $key = null)
Получить значение аргумента команды. | from InteractsWithIO |
| array | arguments()
Получить все аргументы, переданные в команду. | from InteractsWithIO |
| bool | hasOption(string $name)
Определить, присутствует ли данная опция. | from InteractsWithIO |
| string|array|bool|null | option(string|null $key = null)
Получить значение опции команды. | from InteractsWithIO |
| array | options()
Получить все опции, переданные в команду. | from InteractsWithIO |
| bool | confirm(string $question, bool $default = false)
Подтвердить вопрос с пользователем. | from InteractsWithIO |
| mixed | ask(string $question, string|null $default = null)
Запросить у пользователя ввод. | from InteractsWithIO |
| mixed | anticipate(string $question, array|callable $choices, string|null $default = null)
Запросить у пользователя ввод с автодополнением. | from InteractsWithIO |
| mixed | askWithCompletion(string $question, array|callable $choices, string|null $default = null)
Запросить у пользователя ввод с автодополнением. | from InteractsWithIO |
| mixed | secret(string $question, bool $fallback = true)
Запросить у пользователя ввод, но скрыть ответ от консоли. | from InteractsWithIO |
| string|array | choice(string $question, array $choices, string|null $default = null, mixed|null $attempts = null, bool $multiple = false)
Предоставить пользователю один выбор из массива ответов. | from InteractsWithIO |
| void | table(array $headers, Arrayable|array $rows, string $tableStyle = 'default', array $columnStyles = [])
Форматировать ввод в текстовую таблицу. | from InteractsWithIO |
| mixed|void | withProgressBar(iterable|int $totalSteps, Closure $callback)
Выполнить заданный обратный вызов, продвигая индикатор выполнения. | from InteractsWithIO |
| void | info(string $string, int|string|null $verbosity = null)
Вывести строку как информационный вывод. | from InteractsWithIO |
| void | line(string $string, string|null $style = null, int|string|null $verbosity = null)
Вывести строку как стандартный вывод. | from InteractsWithIO |
| void | comment(string $string, int|string|null $verbosity = null)
Вывести строку как комментарий. | from InteractsWithIO |
| void | question(string $string, int|string|null $verbosity = null)
Вывести строку как вопрос. | from InteractsWithIO |
| void | error(string $string, int|string|null $verbosity = null)
Записать строку как ошибочный вывод. | from InteractsWithIO |
| void | warn(string $string, int|string|null $verbosity = null)
Записать строку как предупреждающий вывод. | from InteractsWithIO |
| void | alert(string $string)
Записать строку в диалоговом окне оповещения. | from InteractsWithIO |
| void | newLine(int $count = 1)
Записать пустую строку. | from InteractsWithIO |
| void | setInput(InputInterface $input)
Установить реализацию интерфейса ввода. | from InteractsWithIO |
| void | setOutput(OutputStyle $output)
Установить реализацию интерфейса вывода. | from InteractsWithIO |
| void | setVerbosity(string|int $level)
Установить уровень многословности. | from InteractsWithIO |
| int | parseVerbosity(string|int|null $level = null)
Получить уровень многословности в терминах уровня OutputInterface Symfony. | from InteractsWithIO |
| OutputStyle | getOutput()
Получить реализацию вывода. | from InteractsWithIO |
| static void | macro(string $name, object|callable $macro)
Зарегистрировать пользовательский макрос. | from Macroable |
| static void | mixin(object $mixin, bool $replace = true)
Смешать другой объект в класс. | from Macroable |
| static bool | hasMacro(string $name)
Проверить, зарегистрирован ли макрос. | from Macroable |
| static void | flushMacros()
Очистить существующие макросы. | from Macroable |
| static mixed | __callStatic(string $method, array $parameters)
Динамически обрабатывать вызовы класса. | from Macroable |
| mixed | __call(string $method, array $parameters)
Динамически обрабатывать вызовы класса. | from Macroable |
| void | __construct()
Создать новый экземпляр консольной команды. | from Command |
| void | configureUsingFluentDefinition()
Настроить консольную команду с помощью гибкого определения. | from Command |
| int | run(InputInterface $input, OutputInterface $output)
Запустить консольную команду. | from Command |
| int | execute(InputInterface $input, OutputInterface $output)
Выполнить консольную команду. | from Command |
| bool | isHidden() {@inheritdoc} | from Command |
| Command | setHidden(bool $hidden) {@inheritdoc} | from Command |
| Application | getLaravel()
Получить экземпляр приложения Laravel. | from Command |
| void | setLaravel(Container $laravel)
Установить экземпляр приложения Laravel. | from Command |
| void | handle()
Выполнить консольную команду. |
Подробности
abstract protected Command resolveCommand(Command|string $command)
Разрешить экземпляр консольной команды для данной команды.
int call(Command|string $command, array $arguments = [])
Вызвать другую консольную команду.
int callSilent(Command|string $command, array $arguments = [])
Вызвать другую консольную команду без вывода.
int callSilently(Command|string $command, array $arguments = [])
Вызвать другую консольную команду без вывода.
protected int runCommand(Command|string $command, array $arguments, OutputInterface $output)
Запустить заданную консольную команду.
protected ArrayInput createInputFromArguments(array $arguments)
Создать экземпляр входных данных из заданных аргументов.
protected array context()
Получить весь контекст, переданный в команду.
protected void specifyParameters()
Указать аргументы и параметры команды.
protected array getArguments()
Получить аргументы консольной команды.
protected array getOptions()
Получить параметры консольной команды.
bool hasArgument(string|int $name)
Определить, присутствует ли данный аргумент.
string|array|null argument(string|null $key = null)
Получить значение аргумента команды.
array arguments()
Получить все аргументы, переданные команде.
bool hasOption(string $name)
Определить, присутствует ли данный параметр.
string|array|bool|null option(string|null $key = null)
Получить значение параметра команды.
array options()
Получить все параметры, переданные команде.
bool confirm(string $question, bool $default = false)
Подтвердить вопрос с пользователем.
mixed ask(string $question, string|null $default = null)
Запросить у пользователя ввод.
mixed anticipate(string $question, array|callable $choices, string|null $default = null)
Запросить у пользователя ввод с автодополнением.
mixed askWithCompletion(string $question, array|callable $choices, string|null $default = null)
Запросить у пользователя ввод с автодополнением.
mixed secret(string $question, bool $fallback = true)
Запросить у пользователя ввод, но скрыть ответ от консоли.
string|array choice(string $question, array $choices, string|null $default = null, mixed|null $attempts = null, bool $multiple = false)
Предоставить пользователю выбор одного варианта из массива ответов.
void table(array $headers, Arrayable|array $rows, string $tableStyle = 'default', array $columnStyles = [])
Отформатировать ввод в текстовую таблицу.
mixed|void withProgressBar(iterable|int $totalSteps, Closure $callback)
Выполнить заданный обратный вызов, продвигая индикатор выполнения.
void info(string $string, int|string|null $verbosity = null)
Вывести строку как информационный вывод.
void line(string $string, string|null $style = null, int|string|null $verbosity = null)
Записать строку в стандартный вывод.
void comment(string $string, int|string|null $verbosity = null)
Записать строку в качестве комментария.
void question(string $string, int|string|null $verbosity = null)
Записать строку в качестве вопроса.
void error(string $string, int|string|null $verbosity = null)
Записать строку в качестве сообщения об ошибке.
void warn(string $string, int|string|null $verbosity = null)
Записать строку в качестве предупреждения.
void alert(string $string)
Вывести строку в диалоговом окне оповещения.
void newLine(int $count = 1)
Записать пустую строку.
void setInput(InputInterface $input)
Установить реализацию интерфейса ввода.
void setOutput(OutputStyle $output)
Установить реализацию интерфейса вывода.
protected void setVerbosity(string|int $level)
Установить уровень детализации.
protected int parseVerbosity(string|int|null $level = null)
Получить уровень детализации в терминах уровня OutputInterface Symfony.
OutputStyle getOutput()
Получить реализацию вывода.
static void macro(string $name, object|callable $macro)
Зарегистрировать пользовательский макрос.
static void mixin(object $mixin, bool $replace = true)
Вмешать другой объект в класс.
static bool hasMacro(string $name)
Проверить, зарегистрирован ли макрос.
static void flushMacros()
Очистить существующие макросы.
static mixed __callStatic(string $method, array $parameters)
Динамически обрабатывать вызовы к классу.
mixed __call(string $method, array $parameters)
Динамически обрабатывать вызовы к классу.
void __construct()
Создать новый экземпляр консольной команды.
protected void configureUsingFluentDefinition()
Настроить консольную команду с помощью поточного определения.
int run(InputInterface $input, OutputInterface $output)
Запустить консольную команду.
protected int execute(InputInterface $input, OutputInterface $output)
Выполнить консольную команду.
bool isHidden()
{@inheritdoc}
Command setHidden(bool $hidden)
{@inheritdoc}
Application getLaravel()
Получить экземпляр приложения Laravel.
void setLaravel(Container $laravel)
Установить экземпляр приложения Laravel.
void handle()
Выполнить консольную команду.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Queue/Console/ForgetFailedCommand.html