@@ -293,16 +293,21 @@ private function getOperationsConfiguration(
293
293
array $ compiledPathsList ,
294
294
array $ dataAttributesIncludePattern
295
295
) {
296
+ $ excludePatterns = [];
297
+ foreach ($ this ->excludedPathsList as $ excludedPaths ) {
298
+ $ excludePatterns = array_merge ($ excludedPaths , $ excludePatterns );
299
+ }
300
+
296
301
$ operations = [
297
302
OperationFactory::PROXY_GENERATOR => [
298
303
'paths ' => $ compiledPathsList ['application ' ],
299
304
'filePatterns ' => ['di ' => '/\/etc\/([a-zA-Z_]*\/di|di)\.xml$/ ' ],
300
- 'excludePatterns ' => [ ' /\/Test\// ' ]
305
+ 'excludePatterns ' => $ excludePatterns ,
301
306
],
302
307
OperationFactory::REPOSITORY_GENERATOR => [
303
308
'paths ' => $ compiledPathsList ['application ' ],
304
309
'filePatterns ' => ['di ' => '/\/etc\/([a-zA-Z_]*\/di|di)\.xml$/ ' ],
305
- 'excludePatterns ' => [ ' /\/Test\// ' ]
310
+ 'excludePatterns ' => $ excludePatterns ,
306
311
],
307
312
OperationFactory::DATA_ATTRIBUTES_GENERATOR => [
308
313
'paths ' => $ compiledPathsList ['application ' ],
@@ -315,7 +320,7 @@ private function getOperationsConfiguration(
315
320
$ compiledPathsList ['generated_helpers ' ],
316
321
],
317
322
'filePatterns ' => ['php ' => '/\.php$/ ' ],
318
- 'excludePatterns ' => [ ' /\/Test\// ' ]
323
+ 'excludePatterns ' => $ excludePatterns ,
319
324
],
320
325
OperationFactory::INTERCEPTION => [
321
326
'intercepted_paths ' => [
0 commit comments