forked from prooph/event-store-symfony-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProophEventStoreBundle.php
34 lines (29 loc) · 1.36 KB
/
ProophEventStoreBundle.php
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
32
33
34
<?php
/**
* prooph (http://getprooph.org/)
*
* @see https://github.com/prooph/event-store-symfony-bundle for the canonical source repository
* @copyright Copyright (c) 2016 prooph software GmbH (http://prooph-software.com/)
* @license https://github.com/prooph/event-store-symfony-bundle/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);
namespace Prooph\Bundle\EventStore;
use Prooph\Bundle\EventStore\DependencyInjection\Compiler\DeprecateFqcnProjectionsPass;
use Prooph\Bundle\EventStore\DependencyInjection\Compiler\MetadataEnricherPass;
use Prooph\Bundle\EventStore\DependencyInjection\Compiler\PluginLocatorPass;
use Prooph\Bundle\EventStore\DependencyInjection\Compiler\PluginsPass;
use Prooph\Bundle\EventStore\DependencyInjection\Compiler\RegisterProjectionsPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
final class ProophEventStoreBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new MetadataEnricherPass());
$container->addCompilerPass(new PluginsPass());
$container->addCompilerPass(new RegisterProjectionsPass());
$container->addCompilerPass(new PluginLocatorPass());
$container->addCompilerPass(new DeprecateFqcnProjectionsPass());
}
}