$this->IOHelper->
writeln('Cleanup old files, clearing caches...'
);
$this->
deleteDummyPlugins();
$this->
cleanupFiles();
} private function deleteDummyPlugins() { /** @var DummyPluginFinder $pluginFinder */
$pluginFinder =
$this->container->
get('dummy.plugin.finder'
);
foreach ($pluginFinder->
getDummyPlugins() as $plugin) { Utils::
cleanPath($plugin);
} } private function cleanupFiles() { /** @var CleanupFilesFinder $cleanupFilesFinder */
$cleanupFilesFinder =
$this->container->
get('cleanup.files.finder'
);
foreach ($cleanupFilesFinder->
getCleanupFiles() as $path) { Utils::
cleanPath($path);
}