Reference
C
Class

ApiPlatform\Symfony\EventListener\DenyAccessListener

Denies access to the current resource if the logged user doesn't have sufficient permissions.

class ApiPlatform\Symfony\EventListener\DenyAccessListener
{
    public __construct(null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, null|ApiPlatform\Symfony\Security\ResourceAccessCheckerInterface $resourceAccessChecker)
    public onSecurity(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
    public onSecurityPostDenormalize(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
    public onSecurityPostValidation(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
}
class ApiPlatform\Symfony\EventListener\DenyAccessListener
{
    public __construct(null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, null|ApiPlatform\Symfony\Security\ResourceAccessCheckerInterface $resourceAccessChecker)
    public onSecurity(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
    public onSecurityPostDenormalize(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
    public onSecurityPostValidation(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
}

Methods

__construct

public __construct(null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, null|ApiPlatform\Symfony\Security\ResourceAccessCheckerInterface $resourceAccessChecker)
public __construct(null|ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory, null|ApiPlatform\Symfony\Security\ResourceAccessCheckerInterface $resourceAccessChecker)

Parameters

resourceMetadataCollectionFactoryApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface
resourceAccessCheckerApiPlatform\Symfony\Security\ResourceAccessCheckerInterface

onSecurity

public onSecurity(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
public onSecurity(Symfony\Component\HttpKernel\Event\RequestEvent $event): null

Parameters

eventSymfony\Component\HttpKernel\Event\RequestEvent

Returns

null

onSecurityPostDenormalize

public onSecurityPostDenormalize(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
public onSecurityPostDenormalize(Symfony\Component\HttpKernel\Event\RequestEvent $event): null

Parameters

eventSymfony\Component\HttpKernel\Event\RequestEvent

Returns

null

onSecurityPostValidation

public onSecurityPostValidation(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
public onSecurityPostValidation(Symfony\Component\HttpKernel\Event\ViewEvent $event): null

Parameters

eventSymfony\Component\HttpKernel\Event\ViewEvent

Returns

null

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop