vendor/lightsaml2/symfony-bridge/src/LightSaml/SymfonyBridgeBundle/LightSamlSymfonyBridgeBundle.php line 18

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the LightSAML Symfony Bridge Bundle package.
  4. *
  5. * (c) Milos Tomic <tmilos@lightsaml.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace LightSaml\SymfonyBridgeBundle;
  11. use LightSaml\SymfonyBridgeBundle\DependencyInjection\Compiler\AddMethodCallCompilerPass;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. class LightSamlSymfonyBridgeBundle extends Bundle
  15. {
  16. public function build(ContainerBuilder $container)
  17. {
  18. parent::build($container);
  19. $container->addCompilerPass(new AddMethodCallCompilerPass(
  20. 'lightsaml.own.credential_store',
  21. 'lightsaml.own_credential_store',
  22. 'add'
  23. ));
  24. $container->addCompilerPass(new AddMethodCallCompilerPass(
  25. 'lightsaml.party.trust_options_store',
  26. 'lightsaml.trust_options_store',
  27. 'add'
  28. ));
  29. $container->addCompilerPass(new AddMethodCallCompilerPass(
  30. 'lightsaml.party.idp_entity_descriptor_store',
  31. 'lightsaml.idp_entity_store',
  32. 'add'
  33. ));
  34. $container->addCompilerPass(new AddMethodCallCompilerPass(
  35. 'lightsaml.credential.credential_store_factory',
  36. 'lightsaml.credential',
  37. 'addExtraCredential'
  38. ));
  39. }
  40. }