You are here

public function MiddlewareCollector::addMiddleware in Acquia Content Hub 8

Adds the middleware for HMAC.

Parameters

\Acquia\ContentHubClient\Middleware\MiddlewareHmacInterface $middleware: Middleware for HMAC.

Return value

mixed Middleware to add.

Overrides MiddlewareCollectorInterface::addMiddleware

File

src/Middleware/MiddlewareCollector.php, line 24

Class

MiddlewareCollector
Collector for the HMAC Middleware.

Namespace

Drupal\acquia_contenthub\Middleware

Code

public function addMiddleware(MiddlewareHmacInterface $middleware) {
  $this->middlewares[] = $middleware;
}