phpDocumentor

UploadThemeService

Class UploadThemeService

Table of Contents

$configuration  : StyleEditConfiguration
$extractHelper  : ZipExtractHelper
$filesystem  : FilesystemAdapter
$shopBasePath  : ShopBasePath
__construct()  : mixed
upload()  : array<string|int, mixed>
getExtractPath()  : mixed
getThemeFilesByPath()  : array<string|int, mixed>
getThemeValidator()  : Validator
themeExists()  : bool
getDirectoryRelativePath()  : string
getThemeJson()  : string|null

Properties

Methods

getThemeFilesByPath()

protected getThemeFilesByPath(string $themePath) : array<string|int, mixed>
Parameters
$themePath : string
Return values
array<string|int, mixed>

getThemeValidator()

protected getThemeValidator(string $themeId) : Validator
Parameters
$themeId : string
Tags
throws
Exception
Return values
Validator

themeExists()

protected themeExists(string $themeId) : bool
Parameters
$themeId : string
Return values
bool

getDirectoryRelativePath()

private getDirectoryRelativePath(string $absolutePath) : string
Parameters
$absolutePath : string
Return values
string

getThemeJson()

private getThemeJson([array<string|int, mixed> $themeFiles = [] ]) : string|null
Parameters
$themeFiles : array<string|int, mixed> = []
Return values
string|null

Search results