Completed
Push — sf4-again ( de3216...ab1889 )
by Asmir
02:29
created

TemplatingPass::process()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 1
crap 2
1
<?php
2
namespace Goetas\TwitalBundle\DependencyInjection\Compiler;
3
4
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
7
/**
8
 *
9
 * @author Martin Hasoň <[email protected]>
10
 *
11
 */
12
class TemplatingPass implements CompilerPassInterface
13
{
14 7
    public function process(ContainerBuilder $container)
15
    {
16 7
        var_dump($container->hasDefinition('templating.engine.twig'));
0 ignored issues
show
Security Debugging Code introduced by
var_dump($container->has...plating.engine.twig')); looks like debug code. Are you sure you do not want to remove it? This might expose sensitive data.
Loading history...
17 7
       if (!$container->hasDefinition('templating.engine.twig')) {
18 6
           $container->removeDefinition('templating.engine.twital');
19 6
       }
20 7
    }
21
}
22
23