Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ThemeUninstall.php
Go to the documentation of this file.
1 <?php
7 
10 use Symfony\Component\Console\Output\OutputInterface;
11 
16 {
20  private $themeUninstaller;
21 
25  private $themePackageInfo;
26 
33  public function __construct(ThemeUninstaller $themeUninstaller, ThemePackageInfo $themePackageInfo)
34  {
35  $this->themeUninstaller = $themeUninstaller;
36  $this->themePackageInfo = $themePackageInfo;
37  }
38 
46  public function uninstall(OutputInterface $output, $componentName)
47  {
48  $themePath = $this->themePackageInfo->getFullThemePath($componentName);
49  $this->themeUninstaller->uninstallRegistry($output, [$themePath]);
50  }
51 }
__construct(ThemeUninstaller $themeUninstaller, ThemePackageInfo $themePackageInfo)
uninstall(OutputInterface $output, $componentName)