@@ -132,17 +132,21 @@ protected function execute(InputInterface $input, OutputInterface $output)
132
132
133
133
$ modulePaths = $ this ->componentRegistrar ->getPaths (ComponentRegistrar::MODULE );
134
134
$ libraryPaths = $ this ->componentRegistrar ->getPaths (ComponentRegistrar::LIBRARY );
135
+ $ setupPath = $ this ->directoryList ->getPath (DirectoryList::SETUP );
135
136
$ generationPath = $ this ->directoryList ->getPath (DirectoryList::GENERATED_CODE );
136
137
137
138
$ this ->objectManager ->get (\Magento \Framework \App \Cache::class)->clean ();
138
139
$ compiledPathsList = [
139
140
'application ' => $ modulePaths ,
140
141
'library ' => $ libraryPaths ,
142
+ 'setup ' => $ setupPath ,
141
143
'generated_helpers ' => $ generationPath
142
144
];
145
+
143
146
$ this ->excludedPathsList = [
144
147
'application ' => $ this ->getExcludedModulePaths ($ modulePaths ),
145
148
'framework ' => $ this ->getExcludedLibraryPaths ($ libraryPaths ),
149
+ 'setup ' => $ this ->getExcludedSetupPaths ($ setupPath ),
146
150
];
147
151
$ this ->configureObjectManager ($ output );
148
152
@@ -247,6 +251,19 @@ private function getExcludedLibraryPaths(array $libraryPaths)
247
251
return $ excludedLibraryPaths ;
248
252
}
249
253
254
+ /**
255
+ * Get excluded setup application paths
256
+ *
257
+ * @param string $setupPath
258
+ * @return string[]
259
+ */
260
+ private function getExcludedSetupPaths ($ setupPath )
261
+ {
262
+ return [
263
+ '#^(?: ' . $ setupPath . ')(/[ \\w]+)*/Test# '
264
+ ];
265
+ }
266
+
250
267
/**
251
268
* Delete directories by their code from "var" directory
252
269
*
@@ -331,6 +348,7 @@ private function getOperationsConfiguration(
331
348
'paths ' => [
332
349
$ compiledPathsList ['application ' ],
333
350
$ compiledPathsList ['library ' ],
351
+ $ compiledPathsList ['setup ' ],
334
352
$ compiledPathsList ['generated_helpers ' ],
335
353
],
336
354
'filePatterns ' => ['php ' => '/\.php$/ ' ],
0 commit comments