AppExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 15
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 9 1
1
<?php
2
/**
3
 *
4
 * @copyright (c) 2013 phpBB Group
5
 * @license http://opensource.org/licenses/gpl-3.0.php GNU General Public License v3
6
 * @author MichaelC
7
 *
8
 */
9
10
namespace AppBundle\DependencyInjection;
11
12
use Symfony\Component\Config\FileLocator;
13
use Symfony\Component\DependencyInjection\ContainerBuilder;
14
use Symfony\Component\DependencyInjection\Loader;
15
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
16
17
/**
18
 * This is the class that loads and manages your bundle configuration
19
 *
20
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
21
 */
22
class AppExtension extends Extension
23
{
24
	/**
25
	 * {@inheritDoc}
26
	 */
27
	public function load(array $configs, ContainerBuilder $container)
28
	{
29
		$configuration = new Configuration();
30
		$this->processConfiguration($configuration, $configs);
31
		//$config = $this->processConfiguration($configuration, $configs);
32
33
		$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
34
		$loader->load('services.yml');
35
	}
36
}
37