ThemeDeleterService
in package
Class ThemeDeleterService
Table of Contents
- $fileIO : FileIO
- $cacheCleaner : CacheCleanerInterface
- $configurationRepository : ThemeConfigurationRepository
- $repository : StyleEditThemeRepository
- __construct() : mixed
- ThemeDeleterService constructor.
- deleteTheme() : void
- deletePreview() : void
- deletePreviewOf() : void
- themeIsAPreview() : bool
- themePath() : string
Properties
$fileIO
protected
FileIO
$fileIO
$cacheCleaner
private
CacheCleanerInterface
$cacheCleaner
$configurationRepository
private
ThemeConfigurationRepository
$configurationRepository
$repository
private
StyleEditThemeRepository
$repository
Methods
__construct()
ThemeDeleterService constructor.
public
__construct(ThemeConfigurationRepository $configurationRepository, StyleEditThemeRepository $repository, CacheCleanerInterface $cacheCleaner, FileIO $fileIO) : mixed
Parameters
- $configurationRepository : ThemeConfigurationRepository
- $repository : StyleEditThemeRepository
- $cacheCleaner : CacheCleanerInterface
- $fileIO : FileIO
Return values
mixed —deleteTheme()
public
deleteTheme(BasicThemeInterface $theme) : void
Parameters
- $theme : BasicThemeInterface
Tags
Return values
void —deletePreview()
protected
deletePreview(BasicThemeInterface $theme) : void
Parameters
- $theme : BasicThemeInterface
Tags
Return values
void —deletePreviewOf()
protected
deletePreviewOf(BasicThemeInterface $themeId) : void
Parameters
- $themeId : BasicThemeInterface
Return values
void —themeIsAPreview()
protected
themeIsAPreview(BasicThemeInterface $theme) : bool
Parameters
- $theme : BasicThemeInterface
Tags
Return values
bool —themePath()
protected
themePath(BasicThemeInterface $theme) : string
Parameters
- $theme : BasicThemeInterface