1 | <?php |
||
13 | class Behat3SymfonyExtension extends AbstractExtension |
||
14 | { |
||
15 | /** @var Extension[] */ |
||
16 | private $subExtensionList = []; |
||
17 | |||
18 | 5 | public function __construct(Extension $kernelSubExtension = null, Extension $loggerSubExtension = null) |
|
19 | { |
||
20 | 5 | $this->subExtensionList[] = $kernelSubExtension ?: new KernelSubExtension(); |
|
21 | 5 | $this->subExtensionList[] = $loggerSubExtension ?: new LoggerSubExtension(); |
|
22 | 5 | } |
|
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | 1 | public function getConfigKey() |
|
28 | { |
||
29 | 1 | return 'behat3_symfony'; |
|
30 | } |
||
31 | |||
32 | // @codeCoverageIgnoreStart |
||
33 | // Not possible to cover this because ExtensionManager is a final class |
||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function initialize(ExtensionManager $extensionManager) |
||
43 | // @codeCoverageIgnoreEnd |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 1 | public function configure(ArrayNodeDefinition $builder) |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 2 | public function load(ContainerBuilder $container, array $config) |
|
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | 1 | public function process(ContainerBuilder $container) |
|
84 | } |
||
85 |