Guides
Tutorials
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
}
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)
resourceMetadataCollectionFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface | |
resourceAccessChecker | ApiPlatform\Symfony\Security\ResourceAccessCheckerInterface |
public onSecurity(Symfony\Component\HttpKernel\Event\RequestEvent $event): null
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
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
public onSecurityPostValidation(Symfony\Component\HttpKernel\Event\ViewEvent $event): null
event | Symfony\Component\HttpKernel\Event\ViewEvent |
null