X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FApiBundle%2FWallabagApiBundle.php;h=2484f277971bcc68fd5f04d5c5de604c818f448a;hb=3f3fbef11f86968a991426c2a052ad42e0c16d44;hp=19d887aba8c72b530b1bba3ee804541c5d1e5d87;hpb=3e5a342f6552fc921b9b7fd3d65d9200cdc1979c;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ApiBundle/WallabagApiBundle.php b/src/Wallabag/ApiBundle/WallabagApiBundle.php index 19d887ab..2484f277 100644 --- a/src/Wallabag/ApiBundle/WallabagApiBundle.php +++ b/src/Wallabag/ApiBundle/WallabagApiBundle.php @@ -3,7 +3,16 @@ namespace Wallabag\ApiBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; +use Wallabag\ApiBundle\DependencyInjection\Security\Factory\WsseFactory; +use Symfony\Component\DependencyInjection\ContainerBuilder; class WallabagApiBundle extends Bundle { + public function build(ContainerBuilder $container) + { + parent::build($container); + + $extension = $container->getExtension('security'); + $extension->addSecurityListenerFactory(new WsseFactory()); + } }