vendor/korian/api-landing-page-bundle/KorianApiLandingPageBundle.php line 9

Open in your IDE?
  1. <?php
  2. namespace Korian\ApiLandingPageBundle;
  3. use Symfony\Component\HttpKernel\Bundle\Bundle;
  4. use Korian\ApiLandingPageBundle\DependencyInjection\KorianApiLandingPageBundleExtension;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. class KorianApiLandingPageBundle extends Bundle
  7. {
  8.         /**
  9.      * {@inheritdoc}
  10.      */
  11.     public function build(ContainerBuilder $container)
  12.     {
  13.         parent::build($container);
  14.         /** @var $extension SecurityExtension */
  15.         //$extension = $container->getExtension('security');
  16.         //$extension->addSecurityListenerFactory(new OAuthFactory());
  17.         //$container->addCompilerPass(new SetResourceOwnerServiceNameCompilerPass());
  18.         //$container->addCompilerPass(new ResourceOwnerMapCompilerPass());
  19.     }
  20.     /**
  21.      * {@inheritdoc}
  22.      */
  23.     public function getContainerExtension()
  24.     {
  25.         if (null === $this->extension) {
  26.             return new KorianApiLandingPageBundleExtension();
  27.         }
  28.         return $this->extension;
  29.     }
  30. }