PHP Класс ApiPlatform\Core\Bridge\Symfony\Routing\OperationMethodResolver

Автор: Kévin Dunglas ([email protected])
Автор: Teoh Han Hui ([email protected])
Наследование: implements ApiPlatform\Core\Bridge\Symfony\Routing\OperationMethodResolverInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Symfony\Component\Routing\RouterInterface $router, ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory )
getCollectionOperationMethod ( string $resourceClass, string $operationName ) : string
getCollectionOperationRoute ( string $resourceClass, string $operationName ) : Symfony\Component\Routing\Route
getItemOperationMethod ( string $resourceClass, string $operationName ) : string
getItemOperationRoute ( string $resourceClass, string $operationName ) : Symfony\Component\Routing\Route

Приватные методы

Метод Описание
getOperationMethod ( string $resourceClass, string $operationName, boolean $collection ) : string
getOperationRoute ( string $resourceClass, string $operationName, boolean $collection ) : Symfony\Component\Routing\Route Gets the route related to the given operation.
getRoute ( string $routeName ) : Symfony\Component\Routing\Route Gets the route with the given name.
getRouteName ( ResourceMetadata $resourceMetadata, string $operationName, boolean $collection ) : string | null Gets the route name or null if not defined.

Описание методов

__construct() публичный метод

public __construct ( Symfony\Component\Routing\RouterInterface $router, ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface $resourceMetadataFactory )
$router Symfony\Component\Routing\RouterInterface
$resourceMetadataFactory ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface

getCollectionOperationMethod() публичный метод

public getCollectionOperationMethod ( string $resourceClass, string $operationName ) : string
$resourceClass string
$operationName string
Результат string

getCollectionOperationRoute() публичный метод

public getCollectionOperationRoute ( string $resourceClass, string $operationName ) : Symfony\Component\Routing\Route
$resourceClass string
$operationName string
Результат Symfony\Component\Routing\Route

getItemOperationMethod() публичный метод

public getItemOperationMethod ( string $resourceClass, string $operationName ) : string
$resourceClass string
$operationName string
Результат string

getItemOperationRoute() публичный метод

public getItemOperationRoute ( string $resourceClass, string $operationName ) : Symfony\Component\Routing\Route
$resourceClass string
$operationName string
Результат Symfony\Component\Routing\Route