<?php
namespace Kobizo\Bundle\CoreBundle\Security\Voter;
use Kobizo\Component\Resources\AccessControl\ProfileResource;
class ProfileVoter extends KobizoVoter
{
protected function supports($attribute, $subject): bool
{
return in_array($attribute, ProfileResource::getAllResources());
}
}