forked from FriendsOfAkeneo/CustomEntityBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PimCustomEntityBundle.php
32 lines (28 loc) · 1.06 KB
/
PimCustomEntityBundle.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
<?php
namespace Pim\Bundle\CustomEntityBundle;
use Pim\Bundle\CustomEntityBundle\DependencyInjection\Compiler\RegisterFormExtensionPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Pim Custom Entity Bundle
*
* @author Antoine Guigan <antoine@akeneo.com>
* @copyright 2013 Akeneo SAS (http://www.akeneo.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class PimCustomEntityBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container)
{
$container
->addCompilerPass(new DependencyInjection\Compiler\ConfigurationBuilderPass())
->addCompilerPass(new DependencyInjection\Compiler\SerializerPass())
->addCompilerPass(new DependencyInjection\Compiler\ManagerRegistryPass());
if (class_exists('PimEnterprise\Bundle\WorkflowBundle\PimEnterpriseWorkflowBundle')) {
$container->addCompilerPass(new RegisterFormExtensionPass());
}
}
}