PHP 클래스 eZ\Bundle\EzPublishRestBundle\CorsOptions\RestProvider

Uses the REST OPTIONS routes allowedMethods attribute to provide the list of methods allowed for an URI.
상속: implements Nelmio\CorsBundle\Options\ProviderInterface
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$requestMatcher Symfony\Component\Routing\Matcher\RequestMatcherInterface

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Routing\Matcher\RequestMatcherInterface $requestMatcher )
getOptions ( Request $request ) : array Returns allowed CORS methods for a REST route.

보호된 메소드들

메소드 설명
getAllowedMethods ( $uri )

메소드 상세

__construct() 공개 메소드

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

getAllowedMethods() 보호된 메소드

protected getAllowedMethods ( $uri )

getOptions() 공개 메소드

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

프로퍼티 상세

$requestMatcher 보호되어 있는 프로퍼티

protected RequestMatcherInterface,Symfony\Component\Routing\Matcher $requestMatcher
리턴 Symfony\Component\Routing\Matcher\RequestMatcherInterface