UploadThemeService
in package
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
$configuration
private
StyleEditConfiguration
$configuration
$extractHelper
private
ZipExtractHelper
$extractHelper
$filesystem
private
FilesystemAdapter
$filesystem
$shopBasePath
private
ShopBasePath
$shopBasePath
Methods
__construct()
public
__construct() : mixed
Return values
mixed —upload()
public
upload( $file) : array<string|int, mixed>
Parameters
Tags
Return values
array<string|int, mixed> —getExtractPath()
protected
getExtractPath() : mixed
Return values
mixed —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
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> = []