Copied!

PermissionResolverInterface

PermissionResolverInterface.php : 13

Methods

publicassertPolicy()

PermissionResolverInterface.php : 22
public assertPolicy(PolicyInterface $policy) : void

Parameters

Name Type Default value Description
$policy PolicyInterface - -
Tags
Throws
UnauthorizedException

publiccanUser()

PermissionResolverInterface.php : 15
public canUser(PolicyInterface $policy) : bool

Parameters

Name Type Default value Description
$policy PolicyInterface - -

Return values

bool