PHP Class eZ\Bundle\EzPublishRestBundle\CorsOptions\RestProvider

Uses the REST OPTIONS routes allowedMethods attribute to provide the list of methods allowed for an URI.
Inheritance: implements Nelmio\CorsBundle\Options\ProviderInterface
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$requestMatcher Symfony\Component\Routing\Matcher\RequestMatcherInterface

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\Routing\Matcher\RequestMatcherInterface $requestMatcher )
getOptions ( Request $request ) : array Returns allowed CORS methods for a REST route.

Méthodes protégées

Méthode Description
getAllowedMethods ( $uri )

Method Details

__construct() public méthode

public __construct ( Symfony\Component\Routing\Matcher\RequestMatcherInterface $requestMatcher )
$requestMatcher Symfony\Component\Routing\Matcher\RequestMatcherInterface

getAllowedMethods() protected méthode

protected getAllowedMethods ( $uri )

getOptions() public méthode

Returns allowed CORS methods for a REST route.
public getOptions ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
Résultat array

Property Details

$requestMatcher protected_oe property

protected RequestMatcherInterface,Symfony\Component\Routing\Matcher $requestMatcher
Résultat Symfony\Component\Routing\Matcher\RequestMatcherInterface