function OptionsRequestSubscriber::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/EventSubscriber/OptionsRequestSubscriber.php \Drupal\Core\EventSubscriber\OptionsRequestSubscriber::__construct()
  2. 8.9.x core/lib/Drupal/Core/EventSubscriber/OptionsRequestSubscriber.php \Drupal\Core\EventSubscriber\OptionsRequestSubscriber::__construct()
  3. 10 core/lib/Drupal/Core/EventSubscriber/OptionsRequestSubscriber.php \Drupal\Core\EventSubscriber\OptionsRequestSubscriber::__construct()

Creates a new OptionsRequestSubscriber instance.

Parameters

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.

File

core/lib/Drupal/Core/EventSubscriber/OptionsRequestSubscriber.php, line 34

Class

OptionsRequestSubscriber
Handles options requests.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(RouteProviderInterface $route_provider) {
    $this->routeProvider = $route_provider;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.