You are here

public function HttpServiceApiHandler::__construct in HTTP Client Manager 8

Same name and namespace in other branches
  1. 8.2 src/HttpServiceApiHandler.php \Drupal\http_client_manager\HttpServiceApiHandler::__construct()

HttpServiceApiHandler constructor.

Parameters

string $root: The Application root.

\Drupal\Core\Extension\ModuleHandler $module_handler: The module handler service.

\Drupal\Core\StringTranslation\TranslationManager $string_translation: The string translation manager.

\Drupal\Core\Controller\ControllerResolver $controller_resolver: The controller resolver service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

File

src/HttpServiceApiHandler.php, line 73

Class

HttpServiceApiHandler
Class HttpServiceApiHandler.

Namespace

Drupal\http_client_manager

Code

public function __construct($root, ModuleHandler $module_handler, TranslationManager $string_translation, ControllerResolver $controller_resolver, ConfigFactoryInterface $config_factory) {
  $this->root = $root;
  $this->moduleHandler = $module_handler;
  $this->stringTranslation = $string_translation;
  $this->controllerResolver = $controller_resolver;
  $this->config = $config_factory
    ->get('http_client_manager.settings');
  $this->servicesApi = $this
    ->getServicesApi();
}