You are here

public function AcquiaSearchCommands::__construct in Acquia Search 2.x

Same name and namespace in other branches
  1. 3.x src/Commands/AcquiaSearchCommands.php \Drupal\acquia_search\Commands\AcquiaSearchCommands::__construct()

AcquiaSearchCommands constructor.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $cache: Cache backend service.

File

src/Commands/AcquiaSearchCommands.php, line 43

Class

AcquiaSearchCommands
A Drush commandfile.

Namespace

Drupal\acquia_search\Commands

Code

public function __construct(CacheBackendInterface $cache) {
  parent::__construct();
  $this->cache = $cache;
  $this->preferredCoreService = acquia_search_get_core_service();
}