PHP Класс eZ\Bundle\EzPublishRestBundle\CorsOptions\RestProvider
Uses the REST OPTIONS routes allowedMethods attribute to provide the list of methods allowed for an URI.
Показать файл
Открыть проект
Защищенные свойства (Protected)
Свойство |
Тип |
Описание |
|
$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. |
|
Защищенные методы
Описание методов
__construct()
публичный метод
public __construct ( Symfony\Component\Routing\Matcher\RequestMatcherInterface $requestMatcher ) |
$requestMatcher |
Symfony\Component\Routing\Matcher\RequestMatcherInterface |
|
getAllowedMethods()
защищенный метод
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 |
|