ThemeWriter

Implements \ThemeWriterInterface

Class ThemeWriter

package

Default

Methods

__construct

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

Arguments

$filesystem

\FilesystemAdapter

$shopSource

\ExistingDirectory

_appendFileContent

_appendFileContent( $destinationFile,  $sourceFile) 
Throws
\FileNotFoundException

Arguments

$destinationFile

$sourceFile

_copyCustomHtmlDirectory

_copyCustomHtmlDirectory(\ThemeId $themeId,  $directory, \ThemeDirectoryRootInterface $destination) 
Throws
\FileNotFoundException

Arguments

$themeId

\ThemeId

$directory

_copyCustomJsDirectory

_copyCustomJsDirectory(\ThemeId $themeId,  $directory, \ThemeDirectoryRootInterface $destination) 

Arguments

$themeId

\ThemeId

$directory

_copyCustomStylesDirectory

_copyCustomStylesDirectory(\ThemeId $themeId,  $directory, \ThemeDirectoryRootInterface $destination) 

Arguments

$themeId

\ThemeId

$directory

_copyMainThemeDirectory

_copyMainThemeDirectory(\ThemeId $themeId, \ThemeDirectoryInterface $directory, \ThemeDirectoryRootInterface $destination) 

Arguments

$themeId

\ThemeId

_copyMainThemeStyleEditDirectory

_copyMainThemeStyleEditDirectory(\ThemeId $themeId, \ThemeDirectoryInterface $directory, \ThemeDirectoryRootInterface $destination) 

Arguments

$themeId

\ThemeId

_copyStyleEditThemeDirectory

_copyStyleEditThemeDirectory(\ThemeId $themeId,  $directory, \ThemeDirectoryRootInterface $destination) 
Throws
\FileNotFoundException

Arguments

$themeId

\ThemeId

$directory

_copyThemeDirectory

_copyThemeDirectory(\ThemeId $themeId,  $directory, \ThemeDirectoryRootInterface $destination) 
Throws
\FileNotFoundException

Arguments

$themeId

\ThemeId

$directory

_copyThemeImagesDirectory

_copyThemeImagesDirectory(\ThemeId $themeId,  $imagesDirectory, \ThemeDirectoryRootInterface $destination) 
Throws
\FileNotFoundException

Arguments

$themeId

\ThemeId

$imagesDirectory

_copyThemeJson

_copyThemeJson(\Theme $theme, \ThemeDirectoryRootInterface $destination) 
Throws
\Exception

Arguments

$theme

\Theme

_endsWith

_endsWith( $haystack,  $needle) : boolean

Arguments

$haystack

$needle

Response

boolean

_getRelative

_getRelative(\ThemeDirectoryRootInterface $directory) 

Arguments

_saveMainTheme

_saveMainTheme(\MainThemeInterface $mainTheme, \ThemeDirectoryRootInterface $destination) 

Arguments

$mainTheme

\MainThemeInterface

_saveTheme

_saveTheme(\ThemeInterface $theme, \ThemeDirectoryRootInterface $destination) 
Throws
\FileNotFoundException

Arguments

_saveThemeStructure

_saveThemeStructure(\MainThemeInterface $mainTheme, \ThemeDirectoryRootInterface $destination, \ThemeInterface $childThemes) 
Throws
\FileNotFoundException

Arguments

$mainTheme

\MainThemeInterface

$childThemes

\ThemeInterface

_stringAfter

_stringAfter( $searchFor,  $subject) 

Arguments

$searchFor

$subject

_stringReplaceFirst

_stringReplaceFirst( $search,  $replace,  $subject) 

Arguments

$search

$replace

$subject

copyJavascriptExtensionDirectory

copyJavascriptExtensionDirectory(\Theme $theme, \ThemeDirectoryRootInterface $destination) 
Throws
\FileNotFoundException

Arguments

$theme

\Theme

replaceCustomInPath

replaceCustomInPath(\StringType $path) : string

Arguments

$path

\StringType

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.

Properties

filesystem

filesystem : 

Type(s)

shopSource

shopSource : 

Type(s)

sourceThemeId

sourceThemeId : 

Type(s)