РЕПЕТИТОР математика физика информатика
Для школьников и студентов. Подтягивание пробелов. ЦЭ, ЦТ, ОГЭ, ЕГЭ.
Идет набор на ЛЕТО. Жмите для подробностей:)
1187 of 1361 menu

Команда help

Команда help выводит справку по консольным командам Symfony. Первым параметром передаётся имя команды, для которой нужно показать справку. Если имя не указано, выводится список всех доступных команд. Вторым параметром можно передать имя пространства имён, чтобы отфильтровать команды по группе.

Синтаксис

php bin/console help [command_name] [namespace]

Пример

Давайте выведем список всех доступных команд проекта:

php bin/console help

Результат выполнения команды:

Symfony 7.0.0 (kernel: src, env: dev, debug: true) Usage: command [options] [arguments] Options: -h, --help Display help for the given command. -q, --quiet Do not output any message. -V, --version Display this application version. --ansi|--no-ansi Force (or disable) ANSI output. -n, --no-interaction Do not ask any interactive question. -e, --env=ENV The environment name. --no-debug Disable debug mode. -v|vv|vvv, --verbose Increase the verbosity of messages. Available commands: about Display information about the current project. cache:clear Clear the cache. cache:warmup Warm up an empty cache. debug:router Display the current routes. help Display help for a command. list List commands. make:controller Create a new controller class. make:entity Create a new Doctrine entity class. router:match Help debug routes by simulating a path info match.

Пример

Давайте выведем справку по конкретной команде cache:clear:

php bin/console help cache:clear

Результат выполнения команды:

Description: Clear the cache. Usage: cache:clear [options] Options: --no-warmup Do not warm up the cache. --no-optional-warmers Skip optional cache warmers. -h, --help Display help for the given command. -q, --quiet Do not output any message. -V, --version Display this application version.

Пример

Давайте выведем список команд только из пространства имён debug:

php bin/console help --namespace=debug

Результат выполнения команды:

Available commands for the "debug" namespace: debug:autowiring List classes that can be autowired. debug:config Dump the current configuration. debug:container Display current services. debug:event-dispatcher Display configured listeners. debug:firewall Display the firewall configuration. debug:form Display form type information. debug:router Display the current routes. debug:twig Display Twig information.

Смотрите также

  • команда list,
    которая выводит список всех команд
  • команда about,
    которая показывает информацию о проекте
  • атрибут AsCommand,
    который регистрирует консольную команду
  • параметр help,
    который задаёт текст справки для команды
Мы используем cookie для работы сайта, аналитики и персонализации. Обработка данных происходит согласно Политике конфиденциальности.
принять все настроить отклонить