mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Add StoredObjectVoterInterface
An interface is defined that can be implemented by each context-specific voter in the future.
This commit is contained in:
parent
7923b5a1ef
commit
65c41e6fa9
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* Chill is a software for social workers
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace ChillDocStoreBundle\Security\Authorization;
|
||||
|
||||
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
|
||||
|
||||
interface StoredObjectVoterInterface {
|
||||
|
||||
public function supports(string $attribute, $subject): bool;
|
||||
|
||||
public function voteOnAttribute(string $attribute, $subject, TokenInterface $token): bool;
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user