for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the vseth-semesterly-reports project.
*
* (c) Florian Moser <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Security\Voter\Base;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
abstract class BaseVoter extends Voter
{
const VIEW = 2;
/**
* @param string $attribute
* @param object $subject
* @return bool
protected function voteOnAttribute($attribute, $subject, TokenInterface $token)
return $attribute === self::VIEW;
}