public function OptionsRequestSubscriber::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/EventSubscriber/OptionsRequestSubscriber.php \Drupal\Core\EventSubscriber\OptionsRequestSubscriber::__construct()
Creates a new OptionsRequestSubscriber instance.
Parameters
\Symfony\Cmf\Component\Routing\RouteProviderInterface $route_provider: The route provider.
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ OptionsRequestSubscriber.php, line 33
Class
- OptionsRequestSubscriber
- Handles options requests.
Namespace
Drupal\Core\EventSubscriberCode
public function __construct(RouteProviderInterface $route_provider) {
$this->routeProvider = $route_provider;
}