9 use Symfony\Component\Console\Output\OutputInterface;
16 private $themePackageInfo;
26 private $themeProvider;
37 $this->themePackageInfo = $themePackageInfo;
38 $this->
remove = $remove;
39 $this->themeProvider = $themeProvider;
51 $output->writeln(
'<info>Removing ' . implode(
', ', $themePaths) .
' from database');
52 foreach ($themePaths as $themePath) {
53 $this->themeProvider->getThemeByFullPath($themePath)->delete();
66 $output->writeln(
'<info>Removing ' . implode(
', ', $themePaths) .
' from Magento codebase');
68 foreach ($themePaths as $themePath) {
69 $packageNames[] = $this->themePackageInfo->getPackageName($themePath);
71 $output->writeln($this->remove->remove($packageNames));
__construct(ThemePackageInfo $themePackageInfo, Remove $remove, ThemeProvider $themeProvider)
uninstallCode(OutputInterface $output, array $themePaths)
uninstallRegistry(OutputInterface $output, array $themePaths)