<?php
namespace CioPodProducts\Subscriber;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use CioCustomerPermissionGroups\Event\CustomerAclRolesEvent;
class PodPermissions implements EventSubscriberInterface
{
public static function getSubscribedEvents(): array
{
return [
CustomerAclRolesEvent::class => 'onCustomerAclRolesEvent',
];
}
public function onCustomerAclRolesEvent(CustomerAclRolesEvent $event)
{
$event->addRoles([
[
'title' => 'RELEASE_POD_ORDER',
'description' => 'für die Kundenfreigabe'
],
[
'title' => 'RELEASE_POD_FINAL',
'description' => 'für die finale Freigabe'
]
]);
}
}