BehatVariablesExtension   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 24
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfigKey() 0 3 1
A initialize() 0 3 1
A configure() 0 3 1
A load() 0 4 1
A process() 0 3 1
1
<?php
2
3
namespace rdx\behatvars;
4
5
use Behat\Testwork\ServiceContainer\Extension;
6
use Behat\Testwork\ServiceContainer\ExtensionManager;
7
use Behat\Testwork\ServiceContainer\ServiceProcessor;
8
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
9
use Symfony\Component\Config\FileLocator;
10
use Symfony\Component\DependencyInjection\ContainerBuilder;
11
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
12
13
class BehatVariablesExtension implements Extension {
14
15
	public function getConfigKey() {
16
		return 'behatvars';
17
	}
18
19
	public function initialize(ExtensionManager $extensionManager) {
20
21
	}
22
23
	public function configure(ArrayNodeDefinition $builder) {
24
25
	}
26
27
	public function load(ContainerBuilder $container, array $config) {
28
		$loader = new YamlFileLoader($container, new FileLocator(__DIR__));
29
		$loader->load('services.yml');
30
	}
31
32
	public function process(ContainerBuilder $container) {
33
34
	}
35
36
}
37