custom/plugins/CioPodProducts/src/Subscriber/PodPermissions.php line 17

Open in your IDE?
  1. <?php
  2. namespace CioPodProducts\Subscriber;
  3. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  4. use CioCustomerPermissionGroups\Event\CustomerAclRolesEvent;
  5. class PodPermissions 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_POD_ORDER',
  18.                 'description' => 'für die Kundenfreigabe'
  19.             ],
  20.             [
  21.                 'title' => 'RELEASE_POD_FINAL',
  22.                 'description' => 'für die finale Freigabe'
  23.             ]
  24.         ]);
  25.     }
  26. }