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