You are here

public function HttpServiceApiPreviewForm::__construct in HTTP Client Manager 8

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

HttpConfigRequestForm constructor.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The Request Stack Service.

\Drupal\http_client_manager\HttpServiceApiHandlerInterface $http_services_api: The Http Service Api Handler service.

\Drupal\http_client_manager\HttpClientManagerFactoryInterface $http_client_manager_factory: The Http Client Factory service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The Entity Type Manager service.

File

src/Form/HttpServiceApiPreviewForm.php, line 63

Class

HttpServiceApiPreviewForm
Class HttpServiceApiPreviewForm.

Namespace

Drupal\http_client_manager\Form

Code

public function __construct(RequestStack $requestStack, HttpServiceApiHandlerInterface $http_services_api, HttpClientManagerFactoryInterface $http_client_manager_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->request = $requestStack
    ->getCurrentRequest();
  $this->httpServicesApi = $http_services_api;
  $this->httpClientFactory = $http_client_manager_factory;
  $this->entityTypeManager = $entity_type_manager;
}