Completed
Push — master ( 7d206d...883407 )
by Eric
8s
created

ReplaceBase64FileExtensionPass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of the Lug package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Lug\Bundle\ResourceBundle\DependencyInjection\Compiler;
13
14
use Lug\Bundle\ResourceBundle\Form\Extension\Base64FileExtension;
15
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\DependencyInjection\Reference;
18
19
/**
20
 * @author GeLo <[email protected]>
21
 */
22
class ReplaceBase64FileExtensionPass implements CompilerPassInterface
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27 1
    public function process(ContainerBuilder $container)
28
    {
29
        $container
30 1
            ->getDefinition('ivory.base64_file.form.extension')
31 1
            ->setClass(Base64FileExtension::class)
32 1
            ->addArgument(new Reference('lug.resource.routing.parameter_resolver'));
33 1
    }
34
}
35