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

BlackEmailExtension::getAlias()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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