PageRenderTime 26ms CodeModel.GetById 21ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/FOSFacebookBundle.php

http://github.com/FriendsOfSymfony/FOSFacebookBundle
PHP | 27 lines | 14 code | 5 blank | 8 comment | 0 complexity | 5c78f25521e7631627f6e1c95609cd2c MD5 | raw file
 1<?php
 2
 3/*
 4 * This file is part of the FOSFacebookBundle package.
 5 *
 6 * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
 7 *
 8 * For the full copyright and license information, please view the LICENSE
 9 * file that was distributed with this source code.
10 */
11
12namespace FOS\FacebookBundle;
13
14use FOS\FacebookBundle\DependencyInjection\Security\Factory\FacebookFactory;
15use Symfony\Component\DependencyInjection\ContainerBuilder;
16use Symfony\Component\HttpKernel\Bundle\Bundle;
17
18class FOSFacebookBundle extends Bundle
19{
20    public function build(ContainerBuilder $container)
21    {
22        parent::build($container);
23
24        $extension = $container->getExtension('security');
25        $extension->addSecurityListenerFactory(new FacebookFactory());
26    }
27}