1 | <?php |
||
25 | class Extension implements ExtensionInterface |
||
26 | { |
||
27 | const LIFETIME_FEATURE = 'feature'; |
||
28 | const LIFETIME_SCENARIO = 'scenario'; |
||
29 | |||
30 | /** |
||
31 | * Returns the extension config key. |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getConfigKey() |
||
39 | |||
40 | /** |
||
41 | * Setups configuration for the extension. |
||
42 | * |
||
43 | * @param ArrayNodeDefinition $builder |
||
44 | */ |
||
45 | public function configure(ArrayNodeDefinition $builder) |
||
78 | |||
79 | /** |
||
80 | * Loads extension services into temporary container. |
||
81 | * |
||
82 | * @param ContainerBuilder $container Behat container, does not contains the definitions of the Symfony application. |
||
83 | * @param array $config Extension configuration. |
||
84 | */ |
||
85 | public function load(ContainerBuilder $container, array $config) |
||
98 | |||
99 | /** |
||
100 | * You can modify the container here before it is dumped to PHP code. |
||
101 | * |
||
102 | * @param ContainerBuilder $container |
||
103 | * |
||
104 | * @api |
||
105 | */ |
||
106 | public function process(ContainerBuilder $container) |
||
109 | |||
110 | /** |
||
111 | * Initializes other extensions. |
||
112 | * |
||
113 | * This method is called immediately after all extensions are activated but |
||
114 | * before any extension `configure()` method is called. This allows extensions |
||
115 | * to hook into the configuration of other extensions providing such an |
||
116 | * extension point. |
||
117 | * |
||
118 | * @param ExtensionManager $extensionManager |
||
119 | */ |
||
120 | public function initialize(ExtensionManager $extensionManager) |
||
123 | } |
||
124 |