Completed
Pull Request — develop (#675)
by Wachter
05:15 queued 02:53
created

CodeExplorerExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
/*
4
 * This file is part of Sulu.
5
 *
6
 * (c) MASSIVE ART WebServices GmbH
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace CodeExplorerBundle\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
 * @author Oleg Voronkovich <[email protected]>
21
 */
22
class CodeExplorerExtension extends Extension
23
{
24
    public function load(array $configs, ContainerBuilder $container)
25
    {
26
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
27
28
        $loader->load('services.yml');
29
    }
30
}
31