You are here

public function PreferredSearchCoreService::__construct in Acquia Connector 7.2

Same name and namespace in other branches
  1. 8 acquia_search/src/PreferredSearchCoreService.php \Drupal\acquia_search\PreferredSearchCoreService::__construct()
  2. 7.3 acquia_search/src/PreferredSearchCoreService.php \Drupal\acquia_search\PreferredSearchCoreService::__construct()

ExpectedCoreService constructor.

Parameters

string $acquia_identifier: E.g. 'WXYZ-12345'.

string $ah_env: E.g. 'dev', 'stage' or 'prod'.

string $sites_foldername: E.g. 'default'.

string $ah_db_name: E.g. 'my_site_db'.

array $available_cores: E.g. [ [ 'balancer' => 'useast11-c4.acquia-search.com', 'core_id' => 'WXYZ-12345.dev.mysitedev', ], ].

File

acquia_search/src/PreferredSearchCoreService.php, line 30

Class

PreferredSearchCoreService
Class PreferredSearchCoreService.

Namespace

Drupal\acquia_search

Code

public function __construct($acquia_identifier, $ah_env, $sites_foldername, $ah_db_name, $available_cores) {
  $this->acquia_identifier = $acquia_identifier;
  $this->ah_env = $ah_env;
  $this->sites_foldername = $sites_foldername;
  $this->ah_db_name = $ah_db_name;
  $this->available_cores = $available_cores;
}