Console Flashcards
What class serves as the input point when running console commands?
Symfony\Bundle\FrameworkBundle\Console\Application
or
Symfony\Component\Console\Application
What are the standard global options for console commands?
- -help
- h
- -quiet
- v
- vv
- vvv
- -version
- V
- -ansi
- -no-ansi
- -no-interaction
- n
What are the events fired by the console component?
Symfony\Component\Console\ConsoleEvents::COMMAND
Symfony\Component\Console\ConsoleEvents::TERMINATE
Symfony\Component\Console\ConsoleEvents::ERROR
What is the purpose of Symfony\Component\Console\Event\ConsoleCommandEvent::disableCommand() method?
It can stop the command from being execute. Stopped commands will return 113 error code.
What is the meaning of ‘–’ symbols in the context of console commands?
They separate input options and input arguments.