You are here

public function RequestSubscriber::__construct in Lightning API 8

Same name and namespace in other branches
  1. 8.4 src/RequestSubscriber.php \Drupal\lightning_api\RequestSubscriber::__construct()
  2. 8.2 src/RequestSubscriber.php \Drupal\lightning_api\RequestSubscriber::__construct()
  3. 8.3 src/RequestSubscriber.php \Drupal\lightning_api\RequestSubscriber::__construct()

RequestSubscriber constructor.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match service.

\Drupal\lightning_api\OAuthKey $key: The OAuth keys service.

File

src/RequestSubscriber.php, line 38

Class

RequestSubscriber

Namespace

Drupal\lightning_api

Code

public function __construct(RouteMatchInterface $route_match, OAuthKey $key, TranslationInterface $translation) {
  $this->routeMatch = $route_match;
  $this->key = $key;
  $this
    ->setStringTranslation($translation);
}