Completed
Push — master ( b833c5...54398e )
by Maximilian
35:28 queued 20:30
created

FOSCKEditorBundle::getContainerExtension()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the Ivory CKEditor 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 FOS\CKEditorBundle;
13
14
use FOS\CKEditorBundle\DependencyInjection\Compiler\ResourceCompilerPass;
15
use FOS\CKEditorBundle\DependencyInjection\Compiler\TemplatingCompilerPass;
16
use FOS\CKEditorBundle\DependencyInjection\FOSCKEditorExtension;
17
use Symfony\Component\DependencyInjection\ContainerBuilder;
18
use Symfony\Component\HttpKernel\Bundle\Bundle;
19
20
/**
21
 * @author GeLo <[email protected]>
22
 */
23
class FOSCKEditorBundle extends Bundle
24
{
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function build(ContainerBuilder $container)
29
    {
30
        $container
31
            ->addCompilerPass(new ResourceCompilerPass())
32
            ->addCompilerPass(new TemplatingCompilerPass());
33
    }
34
35
    public function getContainerExtension()
36
    {
37
        return new FOSCKEditorExtension();
38
    }
39
}
40