Skip to content
Snippets Groups Projects
Select Git revision
  • 57bab67cb5820bb0c40c9a2eefabeac74ae89d4c
  • 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

rollup.config.js

Blame
  • DummyLDAPApiProvider.php 829 B
    <?php
    
    declare(strict_types=1);
    
    namespace Dbp\Relay\BasePersonConnectorLdapBundle\TestUtils;
    
    use Dbp\Relay\BasePersonBundle\Entity\Person;
    use Dbp\Relay\BasePersonConnectorLdapBundle\API\LDAPApiProviderInterface;
    use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
    
    class DummyLDAPApiProvider implements LDAPApiProviderInterface
    {
        /**
         * Allows manipulation of the person with a hash array of $attributes at the end of "personFromUserItem".
         */
        public function personFromUserItemPostHook(array $attributes, Person $person, bool $full = false)
        {
            $person->setExtraData('test', 'my-test-string');
        }
    
        public function getPersonForExternalServiceHook(string $service, string $serviceID): Person
        {
            throw new BadRequestHttpException("Unknown service: $service");
        }
    }