Completed
Push — master ( aaa6be...b12176 )
by Alexandre
02:08
created

BlackEmailExtension   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A load() 0 8 2
A getAlias() 0 4 1
1
<?php
2
3
namespace Black\Bundle\EmailBundle\Application\DependencyInjection;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\Config\FileLocator;
7
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
8
use Symfony\Component\DependencyInjection\Loader;
9
10
/**
11
 * Class BlackEmailExtension
12
 *
13
 * This is the class that loads and manages your bundle configuration
14
 *
15
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
16
 *
17
 * @author  Alexandre 'pocky' Balmes <[email protected]>
18
 * @license http://opensource.org/licenses/mit-license.php MIT
19
 */
20
class BlackEmailExtension extends Extension
21
{
22
    /**
23
     * {@inheritDoc}
24
     */
25
    public function load(array $configs, ContainerBuilder $container)
26
    {
27
        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../../Resources/config'));
28
29
        foreach ([] as $service) {
30
            $loader->load(sprintf('%s.yml', $service));
31
        }
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getAlias()
38
    {
39
        return 'black_email';
40
    }
41
}
42