DoctrineMongoDBBundle.php 742 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Symfony\Framework\DoctrineMongoDBBundle;
  3. use Symfony\Foundation\Bundle\Bundle;
  4. use Symfony\Components\DependencyInjection\ContainerInterface;
  5. use Symfony\Components\DependencyInjection\Loader\Loader;
  6. use Symfony\Framework\DoctrineMongoDBBundle\DependencyInjection\MongoDBExtension;
  7. /**
  8. * Doctrine MongoDB ODM bundle.
  9. *
  10. * @author Bulat Shakirzyanov <bulat@theopenskyproject.com>
  11. * @author Kris Wallsmith <kris.wallsmith@symfony-project.com>
  12. * @author Jonathan H. Wage <jonwage@gmail.com>
  13. */
  14. class DoctrineMongoDBBundle extends Bundle
  15. {
  16. public function buildContainer(ContainerInterface $container)
  17. {
  18. Loader::registerExtension(new MongoDBExtension($container->getParameter('kernel.bundles')));
  19. }
  20. }