ThemeWriter

Implements \ThemeWriterInterface

Class ThemeWriter publish theme and create cache and compile template 5.55 s publish theme and compile template 3.62 s compile template 2.63, 2.78, 2.69, normal 0.676s

package

Default

Methods

ThemeWriter constructor.

__construct(\FilesystemAdapter $filesystem, \ExistingDirectory $shopSource) 

Arguments

$filesystem

\FilesystemAdapter

$shopSource

\ExistingDirectory

applyHtmlOverloads

applyHtmlOverloads(\CustomThemeCopyResponse $overloaders, \ThemeDirectoryRootInterface $destination) : boolean|\CustomThemeCopyResponse
Throws
\FileNotFoundException

Arguments

Response

boolean|\CustomThemeCopyResponse

getRelativeFromFile

getRelativeFromFile(\ExistingFile $file) : string

Arguments

Response

string

Saves the given them to the destination.

save(\ThemeInterface $theme, \ThemeDirectoryRootInterface $destination) : void
Throws
\Exception

Arguments

$theme

\ThemeInterface

Theme to be saved.

$destination

\ThemeDirectoryRootInterface

Destination directory.

Constants

FILE_IS_SCRIPT_OR_SHEET_PATTERN

FILE_IS_SCRIPT_OR_SHEET_PATTERN

UNMINIFIED_FILE_NAME_PATTERN

UNMINIFIED_FILE_NAME_PATTERN

Properties