public function Drush::setup in DRD Agent 8.3
Same name and namespace in other branches
- 4.0.x src/Commands/Drush.php \Drupal\drd_agent\Commands\Drush::setup()
Configure this domain for communication with a DRD instance.
@command drd:agent:setup @aliases drd-agent-setup
Parameters
string $token: Base64 and json encoded array of all variables required such that DRD can communicate with this domain in the future.
File
- src/
Commands/ Drush.php, line 40
Class
- Drush
- Class Base.
Namespace
Drupal\drd_agent\CommandsCode
public function setup($token) {
$_SESSION['drd_agent_authorization_values'] = $token;
$this->setupService
->execute();
unset($_SESSION['drd_agent_authorization_values']);
}