Completed
Push — master ( 6f192c...533974 )
by André
26:16
created

EzBehatExtension::initialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 3
rs 10
c 1
b 0
f 1
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
namespace EzSystems\PlatformBehatBundle\ServiceContainer;
4
5
use Behat\Testwork\ServiceContainer\Extension;
6
use Behat\Testwork\ServiceContainer\ExtensionManager;
7
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
8
use Symfony\Component\Config\FileLocator;
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
11
12
/**
13
 * EzBehatExtension loads extension specific services.
14
 */
15
class EzBehatExtension implements Extension
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function getConfigKey()
21
    {
22
        return 'ezbehatextension';
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function process(ContainerBuilder $container)
29
    {
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function initialize(ExtensionManager $extensionManager)
36
    {
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    public function configure(ArrayNodeDefinition $builder)
43
    {
44
    }
45
46
    /**
47
     * Loads extension services into temporary container.
48
     *
49
     * @param ContainerBuilder $container
50
     * @param array $config
51
     */
52
    public function load(ContainerBuilder $container, array $config)
53
    {
54
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
55
        $loader->load('services.yml');
56
    }
57
}
58