You are here

public function Search::__construct in Google Search Appliance 8

Constructs a new Search object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config factory.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: Module handler.

\GuzzleHttp\ClientInterface $httpClient: HTTP client.

\Drupal\google_appliance\Service\ParserInterface $parser: Parser.

File

src/Service/Search.php, line 59

Class

Search
Defines a search connector to GSA.

Namespace

Drupal\google_appliance\Service

Code

public function __construct(ConfigFactoryInterface $configFactory, ModuleHandlerInterface $moduleHandler, ClientInterface $httpClient, ParserInterface $parser) {
  $this->configFactory = $configFactory;
  $this->moduleHandler = $moduleHandler;
  $this->httpClient = $httpClient;
  $this->parser = $parser;
}