Denies access to the current resource if the logged user doesn’t have sufficient permissions.
class ApiPlatform\Symfony\EventListener\DenyAccessListener
{
public __construct(null|$resourceMetadataCollectionFactory, null|`<a href="/docs/main/references/Symfony/Security/ResourceAccessCheckerInterface">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
}
public __construct(null|$resourceMetadataCollectionFactory, null|`<a href="/docs/main/references/Symfony/Security/ResourceAccessCheckerInterface">ApiPlatform\Symfony\Security\ResourceAccessCheckerInterface $resourceAccessChecker)
resourceMetadataCollectionFactory | `ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface` | |
resourceAccessChecker | `ApiPlatform\Symfony\Security\ResourceAccessCheckerInterface` |
public onSecurity(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
event | Symfony\Component\HttpKernel\Event\RequestEvent |
null
public onSecurityPostDenormalize(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
event | Symfony\Component\HttpKernel\Event\RequestEvent |
null
public onSecurityPostValidation(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
event | Symfony\Component\HttpKernel\Event\ViewEvent |
null
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