<?php
declare(strict_types=1);
namespace Kobizo\Bundle\CoreBundle\Security\Voter;
use Kobizo\Component\Resources\AccessControl\SettingResource;
class SettingVoter extends KobizoVoter
{
protected function supports($attribute, $subject): bool
{
if (!in_array($attribute, SettingResource::getAllResources())) {
return false;
}
return true;
}
}