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