Passed
Push — master ( 1e3e7c...781c0c )
by WEBEWEB
03:23
created

getContainerExtension()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the syntaxhighligter-bundle package.
5
 *
6
 * (c) 2017 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\SyntaxHighlighterBundle;
13
14
use Symfony\Component\HttpKernel\Bundle\Bundle;
15
use WBW\Bundle\CoreBundle\Provider\AssetsProviderInterface;
16
use WBW\Bundle\SyntaxHighlighterBundle\DependencyInjection\SyntaxHighlighterExtension;
17
18
/**
19
 * SyntaxHighlighter bundle.
20
 *
21
 * @author webeweb <https://github.com/webeweb/>
22
 * @package WBW\Bundle\SyntaxHighlighterBundle
23
 */
24
class WBWSyntaxHighlighterBundle extends Bundle implements AssetsProviderInterface {
25
26
    /**
27
     * SyntaxHighlighter version.
28
     *
29
     * @var string
30
     */
31
    const SYNTAXHIGHLIGHTER_VERSION = SyntaxHighlighterInterface::SYNTAXHIGHLIGHTER_VERSION;
32
33
    /**
34
     * {@inheritDoc}
35
     */
36
    public function getAssetsRelativeDirectory() {
37
        return "/Resources/assets";
38
    }
39
40
    /**
41
     * {@inheritDoc}
42
     */
43
    public function getContainerExtension() {
44
        return new SyntaxHighlighterExtension();
45
    }
46
}
47