PHP Class ApiPlatform\Core\Api\ResourceClassResolver

Author: Kévin Dunglas ([email protected])
Author: Samuel ROZE ([email protected])
Inheritance: implements ApiPlatform\Core\Api\ResourceClassResolverInterface, use trait ApiPlatform\Core\Util\ClassInfoTrait
Afficher le fichier Open project: api-platform/core Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory )
getResourceClass ( $value, string $resourceClass = null, boolean $strict = false ) : string
isResourceClass ( string $type ) : boolean

Method Details

__construct() public méthode

public __construct ( ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory )
$resourceNameCollectionFactory ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface

getResourceClass() public méthode

public getResourceClass ( $value, string $resourceClass = null, boolean $strict = false ) : string
$resourceClass string
$strict boolean
Résultat string

isResourceClass() public méthode

public isResourceClass ( string $type ) : boolean
$type string
Résultat boolean