Class

eZ\Bundle\EzPublishRestBundle\CorsOptions\RestProvider

class RestProvider implements ProviderInterface

REST Cors Options provider.

Uses the REST OPTIONS routes allowedMethods attribute to provide the list of methods allowed for an URI.

Methods

__construct(RequestMatcherInterface $requestMatcher)

array getOptions(Request $request)

Returns allowed CORS methods for a REST route.

Details

at line 30
public __construct(RequestMatcherInterface $requestMatcher)

Parameters

RequestMatcherInterface $requestMatcher

at line 42
public array getOptions(Request $request)

Returns allowed CORS methods for a REST route.

Parameters

Request $request

Return Value

array