Completed
Push — 0.3.x ( 921e84...1e8c09 )
by Dmitry
14:16
created

RoutingConfigPass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
c 2
b 0
f 2
lcom 0
cbo 2
dl 0
loc 13
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 7 1
1
<?php
2
3
namespace Krtv\Bundle\SingleSignOnIdentityProviderBundle\DependencyInjection\Compiler;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
7
8
/**
9
 * Class RoutingConfigPass
10
 * @package Krtv\Bundle\SingleSignOnIdentityProviderBundle\DependencyInjection\Compiler
11
 */
12
class RoutingConfigPass implements CompilerPassInterface
13
{
14
    /**
15
     * {@inheritDoc}
16
     */
17 1
    public function process(ContainerBuilder $container)
18
    {
19 1
        $container->getDefinition('krtv_single_sign_on_identity_provider.routing.loader')
20 1
            ->replaceArgument(0, $container->getParameter('krtv_single_sign_on_identity_provider.host'))
21 1
            ->replaceArgument(1, $container->getParameter('krtv_single_sign_on_identity_provider.login_path'))
22 1
            ->replaceArgument(2, $container->getParameter('krtv_single_sign_on_identity_provider.logout_path'));
23 1
    }
24
}
25