Completed
Push — master ( e54741...21bf2c )
by WEBEWEB
04:15 queued 16s
created

BootstrapExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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