WP_CLI\Bootstrap
LoadDispatcher{}└─ BootstrapStep
Class LoadDispatcher.
Loads the dispatcher that will dispatch command names to file locations.
No Hooks.
Usage
$LoadDispatcher = new LoadDispatcher(); // use class methods
Methods
Notes
- Package: WP_CLI\Bootstrap
LoadDispatcher{} LoadDispatcher{} code WP-CLI 2.13.0-alpha
final class LoadDispatcher implements BootstrapStep {
/**
* Process this single bootstrapping step.
*
* @param BootstrapState $state Contextual state to pass into the step.
*
* @return BootstrapState Modified state to pass to the next step.
*/
public function process( BootstrapState $state ) {
require_once WP_CLI_ROOT . '/php/dispatcher.php';
return $state;
}
}