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