You are here

protected function AcquiaConnectorCommands::drushSpiGet in Acquia Connector 8

Same name and namespace in other branches
  1. 8.2 src/Commands/AcquiaConnectorCommands.php \Drupal\acquia_connector\Commands\AcquiaConnectorCommands::drushSpiGet()
  2. 3.x src/Commands/AcquiaConnectorCommands.php \Drupal\acquia_connector\Commands\AcquiaConnectorCommands::drushSpiGet()

Helper method to include acquia_connector.module file.

1 call to AcquiaConnectorCommands::drushSpiGet()
AcquiaConnectorCommands::spiGet in src/Commands/AcquiaConnectorCommands.php
Output raw Acquia SPI data.

File

src/Commands/AcquiaConnectorCommands.php, line 175

Class

AcquiaConnectorCommands
A Drush command file.

Namespace

Drupal\acquia_connector\Commands

Code

protected function drushSpiGet() {
  global $conf;
  $conf['acquia_connector.settings']['spi']['ssl_verify'] = FALSE;
  $conf['acquia_connector.settings']['spi']['ssl_override'] = TRUE;
  $client = \Drupal::service('acquia_connector.client');
  $config = \Drupal::service('config.factory');
  $spi = new SpiController($client, $config);
  return $spi
    ->get();
}