vendor/kobizo/core-bundle/src/Security/Voter/SettingVoter.php line 9

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Kobizo\Bundle\CoreBundle\Security\Voter;
  4. use Kobizo\Component\Resources\AccessControl\SettingResource;
  5. class SettingVoter extends KobizoVoter
  6. {
  7.     protected function supports($attribute$subject): bool
  8.     {
  9.         if (!in_array($attributeSettingResource::getAllResources())) {
  10.             return false;
  11.         }
  12.         return true;
  13.     }
  14. }