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

FOSCKEditorBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 3 1
A build() 0 5 1
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