@@ -289,20 +289,6 @@ public function getDeployStrategy(PackageInterface $package, $strategy = null)
289
289
}
290
290
}
291
291
292
- $ moduleSpecificDeployIgnores = array ();
293
- if ($ this ->getConfig ()->hasMagentoDeployIgnore ()) {
294
- $ magentoDeployIgnore = $ this ->getConfig ()->getMagentoDeployIgnore ();
295
- if (isset ($ magentoDeployIgnore ['* ' ])) {
296
- $ moduleSpecificDeployIgnores = $ magentoDeployIgnore ['* ' ];
297
- }
298
- if (isset ($ magentoDeployIgnore [$ package ->getName ()])) {
299
- $ moduleSpecificDeployIgnores = array_merge (
300
- $ moduleSpecificDeployIgnores ,
301
- $ magentoDeployIgnore [$ package ->getName ()]
302
- );
303
- }
304
- }
305
-
306
292
$ targetDir = $ this ->getTargetDir ();
307
293
$ sourceDir = $ this ->getSourceDir ($ package );
308
294
switch ($ strategy ) {
@@ -321,10 +307,29 @@ public function getDeployStrategy(PackageInterface $package, $strategy = null)
321
307
}
322
308
// Inject isForced setting from extra config
323
309
$ impl ->setIsForced ($ this ->isForced );
324
- $ impl ->setIgnoredMappings ($ moduleSpecificDeployIgnores );
310
+ $ impl ->setIgnoredMappings ($ this -> getModuleSpecificDeployIgnores ( $ package ) );
325
311
326
312
return $ impl ;
327
313
}
314
+
315
+ protected function getModuleSpecificDeployIgnores ($ package )
316
+ {
317
+
318
+ $ moduleSpecificDeployIgnores = array ();
319
+ if ($ this ->getConfig ()->hasMagentoDeployIgnore ()) {
320
+ $ magentoDeployIgnore = $ this ->getConfig ()->getMagentoDeployIgnore ();
321
+ if (isset ($ magentoDeployIgnore ['* ' ])) {
322
+ $ moduleSpecificDeployIgnores = $ magentoDeployIgnore ['* ' ];
323
+ }
324
+ if (isset ($ magentoDeployIgnore [$ package ->getName ()])) {
325
+ $ moduleSpecificDeployIgnores = array_merge (
326
+ $ moduleSpecificDeployIgnores ,
327
+ $ magentoDeployIgnore [$ package ->getName ()]
328
+ );
329
+ }
330
+ }
331
+ return $ moduleSpecificDeployIgnores ;
332
+ }
328
333
329
334
/**
330
335
* Return Source dir of package
0 commit comments