You are here

public function PreferredSearchCoreService::__construct in Acquia Connector 8

Same name and namespace in other branches
  1. 7.3 acquia_search/src/PreferredSearchCoreService.php \Drupal\acquia_search\PreferredSearchCoreService::__construct()
  2. 7.2 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_folder_name: 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 67

Class

PreferredSearchCoreService
Serivce to check for preferred search core.

Namespace

Drupal\acquia_search

Code

public function __construct($acquia_identifier, $ah_env, $sites_folder_name, $ah_db_name, array $available_cores) {
  $this->acquiaIdentifier = $acquia_identifier;
  $this->ahEnv = $ah_env;
  $this->sitesFolderName = $sites_folder_name;
  $this->ahDbName = $ah_db_name;
  $this->availableCores = $available_cores;
}