class OptionsRequestSubscriber implements EventSubscriberInterface (View source)

Handles options requests.

Therefore it sends a options response using all methods on all possible routes.

Properties

protected RouteProviderInterface $routeProvider

The route provider.

Methods

__construct(RouteProviderInterface $route_provider)

Creates a new OptionsRequestSubscriber instance.

onRequest(GetResponseEvent $event)

Tries to handle the options request.

static 
getSubscribedEvents()

{@inheritdoc}

Details

__construct(RouteProviderInterface $route_provider)

Creates a new OptionsRequestSubscriber instance.

Parameters

RouteProviderInterface $route_provider

The route provider.

onRequest(GetResponseEvent $event)

Tries to handle the options request.

Parameters

GetResponseEvent $event

The request event.

static getSubscribedEvents()

{@inheritdoc}