public function RequestSubscriber::__construct in Lightning API 8
Same name and namespace in other branches
- 8.4 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.
File
- src/
RequestSubscriber.php, line 38
Class
Namespace
Drupal\lightning_apiCode
public function __construct(RouteMatchInterface $route_match, OAuthKey $key, TranslationInterface $translation) {
$this->routeMatch = $route_match;
$this->key = $key;
$this
->setStringTranslation($translation);
}