-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathIamPersistentMongoDBAclBundle.php
More file actions
executable file
·31 lines (27 loc) · 1.17 KB
/
IamPersistentMongoDBAclBundle.php
File metadata and controls
executable file
·31 lines (27 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/*
*
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace IamPersistent\MongoDBAclBundle;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use IamPersistent\MongoDBAclBundle\DependencyInjection\Compiler\CreateHydratorDirectoryPass;
use IamPersistent\MongoDBAclBundle\DependencyInjection\Compiler\CreateProxyDirectoryPass;
use IamPersistent\MongoDBAclBundle\DependencyInjection\Compiler\EventManagerPass;
use IamPersistent\MongoDBAclBundle\DependencyInjection\DoctrineMongoDBExtension;
/**
* @author Richard Shank <develop@zestic.com>
*/
class IamPersistentMongoDBAclBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
$container->addCompilerPass(new EventManagerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION);
$container->addCompilerPass(new CreateProxyDirectoryPass(), PassConfig::TYPE_BEFORE_REMOVING);
$container->addCompilerPass(new CreateHydratorDirectoryPass(), PassConfig::TYPE_BEFORE_REMOVING);
}
}