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

Автор: Kévin Dunglas ([email protected])
Наследование: implements ApiPlatform\Core\Api\IriConverterInterface, use trait ApiPlatform\Core\Util\ClassInfoTrait
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Core\DataProvider\ItemDataProviderInterface $itemDataProvider, ApiPlatform\Core\Bridge\Symfony\Routing\RouteNameResolverInterface $routeNameResolver, Symfony\Component\Routing\RouterInterface $router, Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null )
getIriFromItem ( $item, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : string
getIriFromResourceClass ( string $resourceClass, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : string
getItemFromIri ( string $iri, array $context = [] )

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

Метод Описание
generateIdentifiersUrl ( array $identifiers ) : array Generate the identifier url.
getIdentifiersFromItem ( object $item ) : array Find identifiers from an Item (Object).

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

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

public __construct ( ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, ApiPlatform\Core\DataProvider\ItemDataProviderInterface $itemDataProvider, ApiPlatform\Core\Bridge\Symfony\Routing\RouteNameResolverInterface $routeNameResolver, Symfony\Component\Routing\RouterInterface $router, Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null )
$propertyNameCollectionFactory ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface
$propertyMetadataFactory ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface
$itemDataProvider ApiPlatform\Core\DataProvider\ItemDataProviderInterface
$routeNameResolver ApiPlatform\Core\Bridge\Symfony\Routing\RouteNameResolverInterface
$router Symfony\Component\Routing\RouterInterface
$propertyAccessor Symfony\Component\PropertyAccess\PropertyAccessorInterface

getIriFromItem() публичный Метод

public getIriFromItem ( $item, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : string
$referenceType integer
Результат string

getIriFromResourceClass() публичный Метод

public getIriFromResourceClass ( string $resourceClass, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : string
$resourceClass string
$referenceType integer
Результат string

getItemFromIri() публичный Метод

public getItemFromIri ( string $iri, array $context = [] )
$iri string
$context array