class OptionsRequestSubscriber implements EventSubscriberInterface (View source)

Handles options requests.

Therefore it sends an 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(RequestEvent $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(RequestEvent $event)

Tries to handle the options request.

Parameters

RequestEvent $event

The request event.

static getSubscribedEvents()

{@inheritdoc}