GuzzleConfigOperationsBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 4
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 1
1
<?php
2
3
namespace Guzzle\ConfigOperationsBundle;
4
5
use Guzzle\ConfigOperationsBundle\DependencyInjection\CompilerPass\ClientCompilerPass;
6
use Guzzle\ConfigOperationsBundle\DependencyInjection\CompilerPass\SymfonyCompilerPass;
7
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
8
use Symfony\Component\DependencyInjection\ContainerBuilder;
9
use Symfony\Component\HttpKernel\Bundle\Bundle;
10
11
class GuzzleConfigOperationsBundle extends Bundle
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function build(ContainerBuilder $container)
17
    {
18
        parent::build($container);
19
20
        $container->addCompilerPass(new ClientCompilerPass());
21
        $container->addCompilerPass(new SymfonyCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 30);
22
    }
23
}
24