-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathAlmaviaCXIbexaImportExportBundle.php
More file actions
32 lines (27 loc) · 1.23 KB
/
AlmaviaCXIbexaImportExportBundle.php
File metadata and controls
32 lines (27 loc) · 1.23 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
32
<?php
declare(strict_types=1);
namespace AlmaviaCX\Bundle\IbexaImportExportBundle;
use AlmaviaCX\Bundle\IbexaImportExportBundle\DependencyInjection\CompilerPass\ComponentPass;
use AlmaviaCX\Bundle\IbexaImportExportBundle\DependencyInjection\CompilerPass\ItemValueTransformerPass;
use AlmaviaCX\Bundle\IbexaImportExportBundle\DependencyInjection\CompilerPass\WorkflowPass;
use AlmaviaCX\Bundle\IbexaImportExportBundle\DependencyInjection\Security\Provider\PolicyProvider;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AlmaviaCXIbexaImportExportBundle extends Bundle
{
/**
* Builds the bundle.
*
* It is only ever called once when the cache is empty.
*/
public function build(ContainerBuilder $container): void
{
parent::build($container);
/** @var \Ibexa\Bundle\Core\DependencyInjection\IbexaCoreExtension $ibexaExtension */
$ibexaExtension = $container->getExtension('ibexa');
$ibexaExtension->addPolicyProvider(new PolicyProvider());
$container->addCompilerPass(new ComponentPass());
$container->addCompilerPass(new WorkflowPass());
$container->addCompilerPass(new ItemValueTransformerPass());
}
}