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

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