Console Flashcards

1
Q

What class serves as the input point when running console commands?

A

Symfony\Bundle\FrameworkBundle\Console\Application
or
Symfony\Component\Console\Application

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the standard global options for console commands?

A
  • -help
  • h
  • -quiet
  • v
  • vv
  • vvv
  • -version
  • V
  • -ansi
  • -no-ansi
  • -no-interaction
  • n
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the events fired by the console component?

A

Symfony\Component\Console\ConsoleEvents::COMMAND
Symfony\Component\Console\ConsoleEvents::TERMINATE
Symfony\Component\Console\ConsoleEvents::ERROR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose of Symfony\Component\Console\Event\ConsoleCommandEvent::disableCommand() method?

A

It can stop the command from being execute. Stopped commands will return 113 error code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the meaning of ‘–’ symbols in the context of console commands?

A

They separate input options and input arguments.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly