Skip to content
Snippets Groups Projects
Select Git revision
  • 1218c75913ef61156054324c724f839ee0df294f
  • main default protected
  • demo protected
  • master
  • icon-set-mapping
  • production protected
  • revert-62666d1a
  • favorites-and-recent-files
  • lit2
  • wc-part
  • mark-downloaded-files
  • feature/annotpdf-test
  • fix-zip-upload
  • config-cleanup
  • wip
  • app-shell-update
16 results

i18next-parser.config.js

Blame
  • PersonForExternalServiceSubscriber.php 910 B
    <?php
    
    declare(strict_types=1);
    
    namespace Dbp\Relay\BasePersonConnectorLdapBundle\TestUtils;
    
    use Dbp\Relay\BasePersonBundle\Entity\Person;
    use Dbp\Relay\BasePersonConnectorLdapBundle\Event\PersonForExternalServiceEvent;
    use Symfony\Component\EventDispatcher\EventSubscriberInterface;
    
    class PersonForExternalServiceSubscriber implements EventSubscriberInterface
    {
        public static function getSubscribedEvents(): array
        {
            return [
                PersonForExternalServiceEvent::NAME => 'onEvent',
            ];
        }
    
        public function onEvent(PersonForExternalServiceEvent $event)
        {
            $service = $event->getService();
            $serviceID = $event->getServiceID();
    
            if ($service === 'test-service') {
                $person = new Person();
                $person->setExtraData('test-service', 'my-test-service-string-'.$serviceID);
                $event->setPerson($person);
            }
        }
    }