-
Notifications
You must be signed in to change notification settings - Fork 0
/
PositibeCmsBundle.php
33 lines (29 loc) · 1.23 KB
/
PositibeCmsBundle.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
<?php
namespace Positibe\Bundle\CmsBundle;
use Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass;
use Positibe\Bundle\CmsBundle\DependencyInjection\Compiler\ResourceServicesCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class PositibeCmsBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
$container->addCompilerPass(new ResourceServicesCompilerPass());
$container->addCompilerPass(
DoctrineOrmMappingsPass::createXmlMappingDriver(
array(
realpath(__DIR__ . '/Resources/config/doctrine-model') => 'Symfony\Cmf\Bundle\SeoBundle\Model',
),
array('cmf_seo.dynamic.persistence.orm.manager_name'),
'cmf_seo.backend_type_orm',
array('CmfSeoBundle' => 'Symfony\Cmf\Bundle\SeoBundle\Model')
)
);
$container->addCompilerPass(
DoctrineOrmMappingsPass::createAnnotationMappingDriver(
[realpath(__DIR__.'/Entity') => 'Positibe\Bundle\MenuBundle\Doctrine\Orm'],
[realpath(__DIR__.'/Entity')]
)
);
}
}