vendor/lightsaml2/sp-bundle/src/LightSaml/SpBundle/LightSamlSpBundle.php line 25

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the LightSAML SP-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\SpBundle;
  11. use LightSaml\SpBundle\DependencyInjection\Security\Factory\LightSamlSpFactory;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. class LightSamlSpBundle extends Bundle
  15. {
  16. public function build(ContainerBuilder $container)
  17. {
  18. parent::build($container);
  19. $extension = $container->getExtension('security');
  20. $extension->addSecurityListenerFactory(new LightSamlSpFactory());
  21. }
  22. }