PHP Class ApiPlatform\Core\Bridge\Symfony\Routing\CachedRouteNameResolver

Author: Teoh Han Hui ([email protected])
Inheritance: implements ApiPlatform\Core\Bridge\Symfony\Routing\RouteNameResolverInterface
Exibir arquivo Open project: api-platform/core Class Usage Examples

Public Methods

Method Description
__construct ( Psr\Cache\CacheItemPoolInterface $cacheItemPool, ApiPlatform\Core\Bridge\Symfony\Routing\RouteNameResolverInterface $decorated )
getRouteName ( string $resourceClass, boolean $collection ) : string

Method Details

__construct() public method

public __construct ( Psr\Cache\CacheItemPoolInterface $cacheItemPool, ApiPlatform\Core\Bridge\Symfony\Routing\RouteNameResolverInterface $decorated )
$cacheItemPool Psr\Cache\CacheItemPoolInterface
$decorated ApiPlatform\Core\Bridge\Symfony\Routing\RouteNameResolverInterface

getRouteName() public method

public getRouteName ( string $resourceClass, boolean $collection ) : string
$resourceClass string
$collection boolean
return string