class UploadPluginTemplate

Class UploadPluginTemplate contains logic for uploading and coping theme files

Constants

WEB_THEME_DIR

THEME_FOLDER_WEB_PATH

Methods

static bool
copySourceAndResourceFilesForTheme(string $file)

Copy theme with plugins and resources into src and web directories

static bool
copyThemeSourceFilesForTheme(string $file)

Copy theme into src directory

static bool
uploadPluginTemplate(mixed $zipFile, Filesystem $fs, null|string $name = null)

Check and extract zip into tmp folder

Details

at line 33
static bool copySourceAndResourceFilesForTheme(string $file)

Copy theme with plugins and resources into src and web directories

Parameters

string $file

Return Value

bool

at line 57
static bool copyThemeSourceFilesForTheme(string $file)

Copy theme into src directory

Parameters

string $file

Return Value

bool

at line 87
static bool uploadPluginTemplate(mixed $zipFile, Filesystem $fs, null|string $name = null)

Check and extract zip into tmp folder

Parameters

mixed $zipFile
Filesystem $fs
null|string $name

Return Value

bool

Exceptions

Exception