function BaseBoot::enforce_requirement

8.0.x BaseBoot.php BaseBoot::enforce_requirement(&$command)
7.x BaseBoot.php BaseBoot::enforce_requirement(&$command)
master BaseBoot.php BaseBoot::enforce_requirement(&$command)

Called by Drush when a command is selected, but before it runs. This gives the Boot class an opportunity to determine if any minimum requirements (e.g. minimum Drupal version) declared in the command have been met.

Return value

TRUE if command is valid. $command['bootstrap_errors'] should be populated with an array of error messages if the command is not valid.

Overrides Boot::enforce_requirement

2 calls to BaseBoot::enforce_requirement()
BaseBoot::bootstrap_and_dispatch in lib/Drush/Boot/BaseBoot.php
Main entrypoint to bootstrap the selected CMS and execute the selected command.
DrupalBoot::enforce_requirement in lib/Drush/Boot/DrupalBoot.php
Called by Drush when a command is selected, but before it runs. This gives the Boot class an opportunity to determine if any minimum requirements (e.g. minimum Drupal version) declared in the command have been met.
1 method overrides BaseBoot::enforce_requirement()
DrupalBoot::enforce_requirement in lib/Drush/Boot/DrupalBoot.php
Called by Drush when a command is selected, but before it runs. This gives the Boot class an opportunity to determine if any minimum requirements (e.g. minimum Drupal version) declared in the command have been met.

File

lib/Drush/Boot/BaseBoot.php, line 21

Namespace

Drush\Boot

Class

BaseBoot

Code

function enforce_requirement(&$command) {
  drush_enforce_requirement_bootstrap_phase($command);
  drush_enforce_requirement_core($command);
  drush_enforce_requirement_drush_dependencies($command);
}