@@ 98-104 (lines=7) @@ | ||
95 | /** |
|
96 | * @param ContainerBuilder $container |
|
97 | */ |
|
98 | private function loadPlaceholdersController(ContainerBuilder $container) |
|
99 | { |
|
100 | $definition = new Definition('Ciandt\Behat\PlaceholdersExtension\Cli\PlaceholdersController', array( |
|
101 | new Reference(self::PLACEHOLDERS_REPOSITIORY_ID))); |
|
102 | $definition->addTag(CliExtension::CONTROLLER_TAG, array('priority' => 1)); |
|
103 | $container->setDefinition(self::PLACEHOLDERS_CONTROLLER_ID, $definition); |
|
104 | } |
|
105 | ||
106 | protected function initializePlaceholderUtils($variantTags, $configTags) |
|
107 | { |
|
@@ 146-153 (lines=8) @@ | ||
143 | * |
|
144 | * @param ContainerBuilder $container |
|
145 | */ |
|
146 | protected function loadPlaceholdersTransformer(ContainerBuilder $container) |
|
147 | { |
|
148 | $definition = new Definition('Ciandt\Behat\PlaceholdersExtension\Transformer\PlaceholdersTransformer', array( |
|
149 | new Reference(self::PLACEHOLDERS_REPOSITIORY_ID) |
|
150 | )); |
|
151 | $definition->addTag(TransformationExtension::ARGUMENT_TRANSFORMER_TAG, array('priority' => 9999999)); |
|
152 | $container->setDefinition(self::PLACEHOLDERS_TRANSFORMER_ID, $definition); |
|
153 | } |
|
154 | ||
155 | ||
156 | protected function loadStepDecoratingScenarioTester(ContainerBuilder $container) |
|
@@ 156-163 (lines=8) @@ | ||
153 | } |
|
154 | ||
155 | ||
156 | protected function loadStepDecoratingScenarioTester(ContainerBuilder $container) |
|
157 | { |
|
158 | $definition = new Definition('Ciandt\Behat\PlaceholdersExtension\Tester\StepDecoratingScenarioTester', array( |
|
159 | new Reference(TesterExtension::SCENARIO_TESTER_ID) |
|
160 | )); |
|
161 | $definition->addTag(TesterExtension::SCENARIO_TESTER_WRAPPER_TAG, array('priority' => 9999999)); |
|
162 | $container->setDefinition(self::STEPS_DECORATOR_ID, $definition); |
|
163 | } |
|
164 | ||
165 | protected function loadBeforeScenarioSubscriber(ContainerBuilder $container) |
|
166 | { |
|
@@ 172-179 (lines=8) @@ | ||
169 | $container->setDefinition(self::BEFORE_SCENARIO_SUBSCRIBER_ID, $definition); |
|
170 | } |
|
171 | ||
172 | private function loadContextInitializer(ContainerBuilder $container) |
|
173 | { |
|
174 | $definition = new Definition('Ciandt\Behat\PlaceholdersExtension\Initializer\PlaceholdersContextInitializer', array( |
|
175 | new Reference(self::PLACEHOLDERS_REPOSITIORY_ID) |
|
176 | )); |
|
177 | $definition->addTag(ContextExtension::INITIALIZER_TAG, array('priority' => 0)); |
|
178 | $container->setDefinition(self::CONTEXT_INITIALIZER_ID, $definition); |
|
179 | } |
|
180 | } |
|
181 |