Completed
Push — master ( f23011...908f75 )
by Asmir
26:03 queued 16:05
created

TemplatingPass::process()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 3
nc 2
nop 1
1
<?php
2
3
namespace Goetas\TwitalBundle\DependencyInjection\Compiler;
4
5
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
8
/**
9
 *
10
 * @author Martin Hasoň <[email protected]>
11
 *
12
 */
13
class TemplatingPass implements CompilerPassInterface
14
{
15
    public function process(ContainerBuilder $container)
16
    {
17
        if (!$container->hasDefinition('templating.engine.twig')) {
18
            $container->removeDefinition('templating.engine.twital');
19
        }
20
    }
21
}
22
23