<?php
namespace CioSponsoredOrderConfirmation\Subscriber;
use CioCustomerPermissionGroups\Event\CustomerAclRolesEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class AclRolesSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents(): array
{
return [
CustomerAclRolesEvent::class => 'onCustomerAclRolesEvent',
];
}
public function onCustomerAclRolesEvent(CustomerAclRolesEvent $event)
{
$event->addRoles([
[
'title' => 'RELEASE_SPONSORED_ORDER',
'description' => 'Kunde kann Sponsoren-Anfragen freigeben.'
],
[
'title' => 'FOOTER_STACI_VISIBLE',
'description' => 'Kunde darf STACI Footer sehen'
]
]);
}
}