aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/WallabagApiBundle.php
blob: 2484f277971bcc68fd5f04d5c5de604c818f448a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

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());
    }
}