vendor/hslavich/oneloginsaml-bundle/HslavichOneloginSamlBundle.php line 18

Open in your IDE?
  1. <?php
  2. namespace Hslavich\OneloginSamlBundle;
  3. use Hslavich\OneloginSamlBundle\DependencyInjection\Compiler\SecurityCompilerPass;
  4. use Hslavich\OneloginSamlBundle\DependencyInjection\Security\Factory\SamlFactory;
  5. use Hslavich\OneloginSamlBundle\DependencyInjection\Security\Factory\SamlUserProviderFactory;
  6. use Symfony\Component\DependencyInjection\ContainerBuilder;
  7. use Symfony\Component\HttpKernel\Bundle\Bundle;
  8. class HslavichOneloginSamlBundle extends Bundle
  9. {
  10.     public function build(ContainerBuilder $container): void
  11.     {
  12.         parent::build($container);
  13.         $extension $container->getExtension('security');
  14.         $extension->addAuthenticatorFactory(new SamlFactory());
  15.         $extension->addUserProviderFactory(new SamlUserProviderFactory());
  16.         $container->addCompilerPass(new SecurityCompilerPass());
  17.     }
  18. }