. */ namespace App\Security\Voter; use App\Entity\LabelSystem\LabelProfile; use App\Entity\UserSystem\User; class LabelProfileVoter extends ExtendedVoter { /** * @inheritDoc */ protected function voteOnUser($attribute, $subject, User $user): bool { return true; } /** * @inheritDoc */ protected function supports($attribute, $subject) { if ($subject instanceof LabelProfile) { return true; } return false; } }