vendor/kobizo/core-bundle/src/Security/Voter/ProfileVoter.php line 7

Open in your IDE?
  1. <?php
  2. namespace Kobizo\Bundle\CoreBundle\Security\Voter;
  3. use Kobizo\Component\Resources\AccessControl\ProfileResource;
  4. class ProfileVoter extends KobizoVoter
  5. {
  6.     protected function supports($attribute$subject): bool
  7.     {
  8.         return in_array($attributeProfileResource::getAllResources());
  9.     }
  10. }