class MiddlewareCollector in Acquia Content Hub 8
Collector for the HMAC Middleware.
@package Drupal\acquia_contenthub\Middleware
Hierarchy
- class \Drupal\acquia_contenthub\Middleware\MiddlewareCollector implements MiddlewareCollectorInterface
Expanded class hierarchy of MiddlewareCollector
1 file declares its use of MiddlewareCollector
- ClientManager.php in src/
Client/ ClientManager.php
1 string reference to 'MiddlewareCollector'
1 service uses MiddlewareCollector
File
- src/
Middleware/ MiddlewareCollector.php, line 12
Namespace
Drupal\acquia_contenthub\MiddlewareView source
class MiddlewareCollector implements MiddlewareCollectorInterface {
/**
* Middlewares for HMAC.
*
* @var middlewares
*/
protected $middlewares;
/**
* {@inheritdoc}
*/
public function addMiddleware(MiddlewareHmacInterface $middleware) {
$this->middlewares[] = $middleware;
}
/**
* {@inheritdoc}
*/
public function getMiddlewares() {
return $this->middlewares;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MiddlewareCollector:: |
protected | property | Middlewares for HMAC. | |
MiddlewareCollector:: |
public | function |
Adds the middleware for HMAC. Overrides MiddlewareCollectorInterface:: |
|
MiddlewareCollector:: |
public | function |
Gets the middleware. Overrides MiddlewareCollectorInterface:: |