weitere updates für instanzierbarkeit und sauberes testing
This commit is contained in:
11
lib/Service/Access/AuthorizationPolicyInterface.php
Normal file
11
lib/Service/Access/AuthorizationPolicyInterface.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace MintyPHP\Service\Access;
|
||||
|
||||
interface AuthorizationPolicyInterface
|
||||
{
|
||||
public function supports(string $ability): bool;
|
||||
|
||||
public function authorize(string $ability, array $context = []): AuthorizationDecision;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user