class HttpClientHandlerStackEvent in HTTP Client Manager 8.2
Class HttpClientHandlerStackEvent.
@package Drupal\http_client_manager\Event
Hierarchy
- class \Drupal\http_client_manager\Event\HttpClientHandlerStackEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of HttpClientHandlerStackEvent
2 files declare their use of HttpClientHandlerStackEvent
- HttpClient.php in src/
HttpClient.php - HttpClientManagerExampleSubscriber.php in modules/
http_client_manager_example/ src/ EventSubscriber/ HttpClientManagerExampleSubscriber.php
File
- src/
Event/ HttpClientHandlerStackEvent.php, line 13
Namespace
Drupal\http_client_manager\EventView source
class HttpClientHandlerStackEvent extends Event {
/**
* The GuzzleHttp Handler stack.
*
* @var \GuzzleHttp\HandlerStack
*/
protected $handlerStack;
/**
* The HTTP Service API id.
*
* @var string
*/
protected $httpServiceApi;
/**
* HttpClientHandlerStackEvent constructor.
*
* @param \GuzzleHttp\HandlerStack $handler_stack
* The GuzzleHttp Handler stack.
* @param string $http_service_api
* The HTTP Service Api id.
*/
public function __construct(HandlerStack $handler_stack, $http_service_api) {
$this->handlerStack = $handler_stack;
$this->httpServiceApi = $http_service_api;
}
/**
* Get Handler stack.
*
* @return \GuzzleHttp\HandlerStack
* The GuzzleHttp Handler stack.
*/
public function getHandlerStack() {
return $this->handlerStack;
}
/**
* Get HTTP Service Api id.
*
* @return string
* The HTTP Service Api id.
*/
public function getHttpServiceApi() {
return $this->httpServiceApi;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HttpClientHandlerStackEvent:: |
protected | property | The GuzzleHttp Handler stack. | |
HttpClientHandlerStackEvent:: |
protected | property | The HTTP Service API id. | |
HttpClientHandlerStackEvent:: |
public | function | Get Handler stack. | |
HttpClientHandlerStackEvent:: |
public | function | Get HTTP Service Api id. | |
HttpClientHandlerStackEvent:: |
public | function | HttpClientHandlerStackEvent constructor. |