11 lines
232 B
PHP
11 lines
232 B
PHP
<?php
|
|
|
|
namespace MintyPHP\Service\Access;
|
|
|
|
interface AuthorizationPolicyInterface
|
|
{
|
|
public function supports(string $ability): bool;
|
|
|
|
public function authorize(string $ability, array $context = []): AuthorizationDecision;
|
|
}
|