You are here

class MiddlewareCollector in Acquia Content Hub 8

Collector for the HMAC Middleware.

@package Drupal\acquia_contenthub\Middleware

Hierarchy

Expanded class hierarchy of MiddlewareCollector

1 file declares its use of MiddlewareCollector
ClientManager.php in src/Client/ClientManager.php
1 string reference to 'MiddlewareCollector'
acquia_contenthub.services.yml in ./acquia_contenthub.services.yml
acquia_contenthub.services.yml
1 service uses MiddlewareCollector
acquia_contenthub.middleware_collector in ./acquia_contenthub.services.yml
Drupal\acquia_contenthub\Middleware\MiddlewareCollector

File

src/Middleware/MiddlewareCollector.php, line 12

Namespace

Drupal\acquia_contenthub\Middleware
View 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

Namesort descending Modifiers Type Description Overrides
MiddlewareCollector::$middlewares protected property Middlewares for HMAC.
MiddlewareCollector::addMiddleware public function Adds the middleware for HMAC. Overrides MiddlewareCollectorInterface::addMiddleware
MiddlewareCollector::getMiddlewares public function Gets the middleware. Overrides MiddlewareCollectorInterface::getMiddlewares