Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 39 lines (33 sloc) 1.454 kB
577df30 @fabpot renamed Symfony\Framework to Symfony\Bundle
fabpot authored
1 <?php
2
08fd722 @blue-eyes normalized license messages in PHP files
blue-eyes authored
3 /*
4 * This file is part of the Symfony package.
5 *
b278f2c @fabpot replaced symfony-project.org by symfony.com
fabpot authored
6 * (c) Fabien Potencier <fabien@symfony.com>
08fd722 @blue-eyes normalized license messages in PHP files
blue-eyes authored
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
577df30 @fabpot renamed Symfony\Framework to Symfony\Bundle
fabpot authored
12 namespace Symfony\Bundle\DoctrineMongoDBBundle;
13
9a8c63a @avalanche123 [DoctrineMongoDBBundle] switched to compiler passes for proxy/hydrato…
avalanche123 authored
14 use Symfony\Component\DependencyInjection\Compiler\PassConfig;
15 use Symfony\Component\DependencyInjection\ContainerBuilder;
675fd44 @fabpot removed Symfony\Framework
fabpot authored
16 use Symfony\Component\HttpKernel\Bundle\Bundle;
9a8c63a @avalanche123 [DoctrineMongoDBBundle] switched to compiler passes for proxy/hydrato…
avalanche123 authored
17 use Symfony\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\CreateHydratorDirectoryPass;
18 use Symfony\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\CreateProxyDirectoryPass;
19 use Symfony\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\RegisterEventListenersAndSubscribersPass;
577df30 @fabpot renamed Symfony\Framework to Symfony\Bundle
fabpot authored
20
21 /**
22 * Doctrine MongoDB ODM bundle.
23 *
24 * @author Bulat Shakirzyanov <bulat@theopenskyproject.com>
b278f2c @fabpot replaced symfony-project.org by symfony.com
fabpot authored
25 * @author Kris Wallsmith <kris.wallsmith@symfony.com>
577df30 @fabpot renamed Symfony\Framework to Symfony\Bundle
fabpot authored
26 * @author Jonathan H. Wage <jonwage@gmail.com>
27 */
4a92955 @avalanche123 [DoctrineMongoDBBundle] removed trailing space
avalanche123 authored
28 class DoctrineMongoDBBundle extends Bundle
577df30 @fabpot renamed Symfony\Framework to Symfony\Bundle
fabpot authored
29 {
5842458 @fabpot added the concept of a main DIC extension for bundles
fabpot authored
30 public function build(ContainerBuilder $container)
9a8c63a @avalanche123 [DoctrineMongoDBBundle] switched to compiler passes for proxy/hydrato…
avalanche123 authored
31 {
5842458 @fabpot added the concept of a main DIC extension for bundles
fabpot authored
32 parent::build($container);
9a8c63a @avalanche123 [DoctrineMongoDBBundle] switched to compiler passes for proxy/hydrato…
avalanche123 authored
33
34 $container->addCompilerPass(new RegisterEventListenersAndSubscribersPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION);
35 $container->addCompilerPass(new CreateProxyDirectoryPass(), PassConfig::TYPE_BEFORE_REMOVING);
36 $container->addCompilerPass(new CreateHydratorDirectoryPass(), PassConfig::TYPE_BEFORE_REMOVING);
37 }
22d95dd @fabpot [DoctrineMongoDBBundle] removed DoctrineMongoDBExtension constructor
fabpot authored
38 }
Something went wrong with that request. Please try again.