src/Security/ProgramVoter.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Security;
  3. use Exception;
  4. use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
  5. use Symfony\Component\Security\Core\Authorization\Voter\Voter;
  6. use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
  7. class ProgramVoter extends Voter
  8. {
  9.     protected function supports($attribute$subject)
  10.     {
  11.         return true;
  12.     }
  13.     protected function voteOnAttribute($attribute$subjectTokenInterface $token)
  14.     {
  15.         return VoterInterface::ACCESS_DENIED;
  16.     }
  17. }