function Command::isEnabled
Checks whether the command is enabled or not in the current environment.
Override this to check for x or y and return false if the command cannot run properly under the current conditions.
2 methods override Command::isEnabled()
- LazyCommand::isEnabled in vendor/
symfony/ console/ Command/ LazyCommand.php - Checks whether the command is enabled or not in the current environment.
- TraceableCommand::isEnabled in vendor/
symfony/ console/ Command/ TraceableCommand.php - Checks whether the command is enabled or not in the current environment.
File
-
vendor/
symfony/ console/ Command/ Command.php, line 155
Class
- Command
- Base class for all commands.
Namespace
Symfony\Component\Console\CommandCode
public function isEnabled() : bool {
return true;
}