<?php
namespace Korian\ApiLandingPageBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Korian\ApiLandingPageBundle\DependencyInjection\KorianApiLandingPageBundleExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class KorianApiLandingPageBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
/** @var $extension SecurityExtension */
//$extension = $container->getExtension('security');
//$extension->addSecurityListenerFactory(new OAuthFactory());
//$container->addCompilerPass(new SetResourceOwnerServiceNameCompilerPass());
//$container->addCompilerPass(new ResourceOwnerMapCompilerPass());
}
/**
* {@inheritdoc}
*/
public function getContainerExtension()
{
if (null === $this->extension) {
return new KorianApiLandingPageBundleExtension();
}
return $this->extension;
}
}