src/Security/Voter/ChannelVoter.php line 10

  1. <?php
  2. namespace App\Security\Voter;
  3. use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
  4. use Symfony\Component\Security\Core\Authorization\Voter\Voter;
  5. class ChannelVoter extends Voter
  6. {
  7.     public const LISTEN_ADMIN 'channel_listen_admin';
  8.     protected function supports(string $attribute$subject): bool
  9.     {
  10.         return false;
  11.     }
  12.     protected function voteOnAttribute(string $attribute$subjectTokenInterface $token): bool
  13.     {
  14.         return false;
  15.     }
  16. }