Reference
I
Interface

ApiPlatform\Symfony\Security\ResourceAccessCheckerInterface

Checks if the logged user has sufficient permissions to access the given resource.

interface ApiPlatform\Symfony\Security\ResourceAccessCheckerInterface
{
    public isGranted(string $resourceClass, string $expression, array $extraVariables): bool
}
interface ApiPlatform\Symfony\Security\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
public isGranted(string $resourceClass, string $expression, array $extraVariables): bool

Parameters

resourceClassstring
expressionstring
extraVariablesarray

Returns

bool

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop