References ResourceAccessCheckerInterface
Reference
I
Interface

ApiPlatform\Metadata\ResourceAccessCheckerInterface

interface ApiPlatform\Metadata\ResourceAccessCheckerInterface
{
    public isGranted(string $resourceClass, string $expression, array $extraVariables): bool
}

Methods

isGranted

Checks if the given item can be accessed by the current user.

public isGranted(string $resourceClass, string $expression, array $extraVariables): bool

Parameters

resourceClassstring
expressionstring
extraVariablesarray

Returns

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

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop