@@ -63,6 +63,7 @@ public function __construct(ModuleContainer $moduleContainer, $config = null, bo
6363 }
6464
6565 /**
66+ * @param mixed $settings
6667 * @throws ConfigurationException
6768 * @throws Exception
6869 */
@@ -174,9 +175,22 @@ public function setScenarioState(string $name, string $state): void
174175 $ this ->phiremock ->setScenarioState ($ name , $ state );
175176 }
176177
178+ /** @throws ModuleException */
179+ protected function setupExtraConnections (): void
180+ {
181+ if (!$ this ->isExtraConfig ) {
182+ foreach ($ this ->moduleConfig ->getExtraConnectionsConfigs () as $ name => $ connectionConfig ) {
183+ if ($ name === 'default ' ) {
184+ throw new ModuleException ($ this , 'The connection name "default" is reserved and can not be used for an extra connection ' );
185+ }
186+ $ this ->extraConnections [$ name ] = new self ($ this ->moduleContainer , $ connectionConfig ->asArray (), true );
187+ }
188+ }
189+ }
190+
177191 private function createDebugMethod (): callable
178192 {
179- return function (string $ msg ) : void {
193+ return function (string $ msg ): void {
180194 $ this ->debug ($ msg );
181195 };
182196 }
@@ -225,17 +239,4 @@ private function extraConfigsBefore(TestInterface $test): void
225239 }
226240 }
227241 }
228-
229- /** @throws ModuleException */
230- protected function setupExtraConnections (): void
231- {
232- if (!$ this ->isExtraConfig ) {
233- foreach ($ this ->moduleConfig ->getExtraConnectionsConfigs () as $ name => $ connectionConfig ) {
234- if ($ name === 'default ' ) {
235- throw new ModuleException ($ this , 'The connection name "default" is reserved and can not be used for an extra connection ' );
236- }
237- $ this ->extraConnections [$ name ] = new self ($ this ->moduleContainer , $ connectionConfig ->asArray (), true );
238- }
239- }
240- }
241242}
0 commit comments