Skip to content
Snippets Groups Projects
Select Git revision
  • c4c3313b0aa097718e9c93aafef80d99e837ec1d
  • main default protected
  • renovate/lock-file-maintenance
  • demo protected
  • person-select-custom
  • dbp-translation-component
  • icon-set-mapping
  • port-i18next-parser
  • remove-sentry
  • favorites-and-recent-files
  • revert-6c632dc6
  • lit2
  • advertisement
  • wc-part
  • automagic
  • publish
  • wip-cleanup
  • demo-file-handling
18 results

i18n.js

Blame
  • PersonFromUserItemSubscriber.php NaN GiB
    <?php
    
    declare(strict_types=1);
    
    namespace App\EventSubscriber;
    
    use Dbp\Relay\BasePersonConnectorLdapBundle\Event\PersonFromUserItemPostEvent;
    use Symfony\Component\EventDispatcher\EventSubscriberInterface;
    
    class PersonFromUserItemSubscriber implements EventSubscriberInterface
    {
        public static function getSubscribedEvents(): array
        {
            return [
                PersonFromUserItemPostEvent::NAME => 'onPost',
            ];
        }
    
        public function onPost(PersonFromUserItemPostEvent $event)
        {
            $person = $event->getPerson();
    
            $roles = ['ROLE_SCOPE_LOCATION-CHECK-IN', 'ROLE_SCOPE_LOCATION-CHECK-IN-GUEST'];
            $person->setExtraData('ldap-roles', $roles);
    
            $event->setPerson($person);
        }
    }