public function RequestSubscriber::__construct in Lightning API 8.4
Same name and namespace in other branches
- 8 src/RequestSubscriber.php \Drupal\lightning_api\RequestSubscriber::__construct()
- 8.2 src/RequestSubscriber.php \Drupal\lightning_api\RequestSubscriber::__construct()
- 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.
\Drupal\Core\StringTranslation\TranslationInterface $translation: The string translation service.
File
- src/RequestSubscriber.php, line 45 
Class
- RequestSubscriber
- Subscribes to request-related events.
Namespace
Drupal\lightning_apiCode
public function __construct(RouteMatchInterface $route_match, OAuthKey $key, TranslationInterface $translation) {
  $this->routeMatch = $route_match;
  $this->key = $key;
  $this
    ->setStringTranslation($translation);
}