<?phpnamespace Kobizo\Bundle\ECommerceBundle\Security\Voter;use Kobizo\Bundle\CoreBundle\Security\Voter\KobizoVoter;use Kobizo\Bundle\ECommerceBundle\Resources\AccessControl\ReportResource;class ReportVoter extends KobizoVoter{ protected function supports($attribute, $subject): bool { if (!in_array($attribute, ReportResource::getAllResources())) { return false; } return true; }}