custom/static-plugins/CioFormBuilder/src/Subscriber/AclRolesSubscriber.php line 18

Open in your IDE?
  1. <?php
  2. namespace CioFormBuilder\Subscriber;
  3. use CioCustomerPermissionGroups\Event\CustomerAclRolesEvent;
  4. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  5. class AclRolesSubscriber implements EventSubscriberInterface
  6. {
  7.     public static function getSubscribedEvents(): array
  8.     {
  9.         return [
  10.             CustomerAclRolesEvent::class => 'onCustomerAclRolesEvent',
  11.         ];
  12.     }
  13.     public function onCustomerAclRolesEvent(CustomerAclRolesEvent $event)
  14.     {
  15.         $event->addRoles([
  16.             [
  17.                 'title' => 'RELEASE_EVENT_ORDER',
  18.                 'description' => 'Kunde kann Sponsoren-Anfragen freigeben.'
  19.             ]
  20.         ]);
  21.     }
  22. }