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

RoutingConfigPass::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 2
Metric Value
cc 1
eloc 5
c 2
b 0
f 2
nc 1
nop 1
dl 0
loc 7
ccs 6
cts 6
cp 1
crap 1
rs 9.4285
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