You are here

public function ConsoleCommandEvent::disableCommand in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Event/ConsoleCommandEvent.php \Symfony\Component\Console\Event\ConsoleCommandEvent::disableCommand()

Disables the command, so it won't be run.

Return value

bool

File

vendor/symfony/console/Event/ConsoleCommandEvent.php, line 38

Class

ConsoleCommandEvent
Allows to do things before the command is executed, like skipping the command or changing the input.

Namespace

Symfony\Component\Console\Event

Code

public function disableCommand() {
  return $this->commandShouldRun = false;
}