Skip to content

Commit bd7f35c

Browse files
committed
Updated documentation.
1 parent bc889b0 commit bd7f35c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Contracts/Services/IAuthorizationService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
interface IAuthorizationService
1313
{
1414
/**
15+
* Check if the current user can access an action behind the given {@link $policy}.
16+
*
1517
* @param TResource|null $resource
1618
* @param IPolicy|class-string $policy
1719
* @return bool
@@ -20,6 +22,8 @@ interface IAuthorizationService
2022
public function authorizePolicy(mixed $resource, IPolicy|string $policy): bool;
2123

2224
/**
25+
* Check if the current user can access an action behind the given {@link $requirements}.
26+
*
2327
* @param TResource|null $resource
2428
* @param iterable<IRequirement> $requirements
2529
* @return bool

0 commit comments

Comments
 (0)