mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Type-hint $subject in StoredObjectVoterInterface.php
Since the subject passed to these voters should\ always be of the type StoredObject, type-hinting\ added.
This commit is contained in:
parent
e9a9262fae
commit
4b82e67952
@ -11,12 +11,13 @@ declare(strict_types=1);
|
||||
|
||||
namespace ChillDocStoreBundle\Security\Authorization;
|
||||
|
||||
use Chill\DocStoreBundle\Entity\StoredObject;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
|
||||
|
||||
interface StoredObjectVoterInterface {
|
||||
|
||||
public function supports(string $attribute, $subject): bool;
|
||||
public function supports(string $attribute, StoredObject $subject): bool;
|
||||
|
||||
public function voteOnAttribute(string $attribute, $subject, TokenInterface $token): bool;
|
||||
public function voteOnAttribute(string $attribute, StoredObject $subject, TokenInterface $token): bool;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user