Guesses which resource is associated with a given object.
interface ApiPlatform\Api\ResourceClassResolverInterface
{
public getResourceClass($value, null|string $resourceClass, bool $strict): string
public isResourceClass(string $type): bool
}
Guesses the associated resource.
public getResourceClass($value, null|string $resourceClass, bool $strict): string
value | ||
resourceClass | string | The expected resource class |
strict | bool | If true, value must match the expected resource class |
string
Is the given class a resource class?
public isResourceClass(string $type): bool
type | string |
bool
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more