Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 30 lines (25 sloc) 1.257 kb
577df30 @fabpot renamed Symfony\Framework to Symfony\Bundle
fabpot authored
1 <?php
2
3 namespace Symfony\Bundle\DoctrineMongoDBBundle;
4
9a8c63a @avalanche123 [DoctrineMongoDBBundle] switched to compiler passes for proxy/hydrator d...
avalanche123 authored
5 use Symfony\Component\DependencyInjection\Compiler\PassConfig;
6 use Symfony\Component\DependencyInjection\ContainerBuilder;
675fd44 @fabpot removed Symfony\Framework
fabpot authored
7 use Symfony\Component\HttpKernel\Bundle\Bundle;
9a8c63a @avalanche123 [DoctrineMongoDBBundle] switched to compiler passes for proxy/hydrator d...
avalanche123 authored
8 use Symfony\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\CreateHydratorDirectoryPass;
9 use Symfony\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\CreateProxyDirectoryPass;
10 use Symfony\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\RegisterEventListenersAndSubscribersPass;
577df30 @fabpot renamed Symfony\Framework to Symfony\Bundle
fabpot authored
11
12 /**
13 * Doctrine MongoDB ODM bundle.
14 *
15 * @author Bulat Shakirzyanov <bulat@theopenskyproject.com>
16 * @author Kris Wallsmith <kris.wallsmith@symfony-project.com>
17 * @author Jonathan H. Wage <jonwage@gmail.com>
18 */
4a92955 @avalanche123 [DoctrineMongoDBBundle] removed trailing space
avalanche123 authored
19 class DoctrineMongoDBBundle extends Bundle
577df30 @fabpot renamed Symfony\Framework to Symfony\Bundle
fabpot authored
20 {
9a8c63a @avalanche123 [DoctrineMongoDBBundle] switched to compiler passes for proxy/hydrator d...
avalanche123 authored
21 public function registerExtensions(ContainerBuilder $container)
22 {
23 parent::registerExtensions($container);
24
25 $container->addCompilerPass(new RegisterEventListenersAndSubscribersPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION);
26 $container->addCompilerPass(new CreateProxyDirectoryPass(), PassConfig::TYPE_BEFORE_REMOVING);
27 $container->addCompilerPass(new CreateHydratorDirectoryPass(), PassConfig::TYPE_BEFORE_REMOVING);
28 }
22d95dd @fabpot [DoctrineMongoDBBundle] removed DoctrineMongoDBExtension constructor
fabpot authored
29 }
Something went wrong with that request. Please try again.