WP_CLI\Context
Auto::process
Process the context to set up the environment correctly.
Method of the class: Auto{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Auto = new Auto(); $Auto->process( $config );
- $config(array) (required)
- Associative array of configuration data.
Auto::process() Auto::process code WP-CLI 2.13.0-alpha
public function process( $config ) {
$config['context'] = $this->deduce_best_context();
$this->context_manager->switch_context( $config );
}