You are here

public function CircleV2::__construct in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x modules/build_hooks_circleci/src/Plugin/FrontendEnvironment/CircleV2.php \Drupal\build_hooks_circleci\Plugin\FrontendEnvironment\CircleV2::__construct()

Constructs a new CircleV2.

Parameters

array $configuration: Configuration.

string $plugin_id: Plugin ID.

mixed $plugin_definition: Plugin definition.

\GuzzleHttp\ClientInterface $httpClient: HTTP client.

\Drupal\Core\Datetime\DateFormatterInterface $formatter: Date formatter.

Overrides FrontendEnvironmentBase::__construct

File

modules/build_hooks_circleci/src/Plugin/FrontendEnvironment/CircleV2.php, line 57

Class

CircleV2
Defines a circle v2 environment.

Namespace

Drupal\build_hooks_circleci\Plugin\FrontendEnvironment

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ClientInterface $httpClient, DateFormatterInterface $formatter) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->httpClient = $httpClient;
  $this->formatter = $formatter;
}