You are here

public function ConsoleCommandEvent::commandShouldRun 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::commandShouldRun()

Returns true if the command is runnable, false otherwise.

Return value

bool

File

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

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 commandShouldRun() {
  return $this->commandShouldRun;
}