Passed
Pull Request — master (#6)
by
unknown
02:45
created

ApiServiceBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace ElevenLabs\ApiServiceBundle;
4
5
use ElevenLabs\ApiServiceBundle\DependencyInjection\Compiler\FormatPass;
6
use ElevenLabs\ApiServiceBundle\DependencyInjection\Compiler\PaginatorCompilerPass;
7
use Symfony\Component\HttpKernel\Bundle\Bundle;
8
use Symfony\Component\DependencyInjection\ContainerBuilder;
9
10
/**
11
 * Class ApiServiceBundle.
12
 */
13
class ApiServiceBundle extends Bundle
14
{
15
    /**
16
     * @param ContainerBuilder $container
17
     */
18
    public function build(ContainerBuilder $container)
19
    {
20
        parent::build($container);
21
22
        $container
23
            ->addCompilerPass(new FormatPass())
24
            ->addCompilerPass(new PaginatorCompilerPass())
25
        ;
26
    }
27
}
28