WebhookBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Webhook\Bundle;
5
6
use Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\HttpKernel\Bundle\Bundle;
9
10
/**
11
 * Class WebhookBundle
12
 *
13
 * @package Webhook\Bundle
14
 */
15
class WebhookBundle extends Bundle
16
{
17
    /**
18
     * @param ContainerBuilder $container
19
     */
20
    public function build(ContainerBuilder $container)
21
    {
22
        $mappings = [
23
            realpath(__DIR__ . '/Resources/config/doctrine-mapping/') => 'Webhook\\Domain\\Model',
24
        ];
25
26
        $container->addCompilerPass(DoctrineOrmMappingsPass::createXmlMappingDriver($mappings));
27
    }
28
}