Passed
Push — master ( d6e940...1e3e7c )
by WEBEWEB
05:05
created

SyntaxHighlighterExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the syntaxhighlighter-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\DependencyInjection;
13
14
use Symfony\Component\Config\FileLocator;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
17
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
18
19
/**
20
 * SyntaxHighlighter extension.
21
 *
22
 * @author webeweb <https://github.com/webeweb/>
23
 * @package WBW\Bundle\SyntaxHighlighterBundle\DependencyInjection
24
 */
25
class SyntaxHighlighterExtension extends Extension {
26
27
    /**
28
     * {@inheritDoc}
29
     */
30
    public function getAlias() {
31
        return parent::getAlias();
32
    }
33
34
    /**
35
     * {@inheritDoc}
36
     */
37
    public function load(array $configs, ContainerBuilder $container) {
38
39
        // Create the file locator.
40
        $fileLocator = new FileLocator(__DIR__ . "/../Resources/config");
41
42
        // Load the services.
43
        $serviceLoader = new YamlFileLoader($container, $fileLocator);
44
        $serviceLoader->load("services.yml");
45
    }
46
}
47