class ThemeInstallCommand extends ThemesCommand (View source)

Command line utils for managing themes from terminal.

Constants

METHOD_COPY

METHOD_ABSOLUTE_SYMLINK

METHOD_RELATIVE_SYMLINK

Properties

protected EntityManager $entityManager from ThemesCommand
protected Filesystem $filesystem from ThemesCommand

Methods

configure()

No description

__construct()

No description

string
validateThemeName($name)

No description

string
getThemePath(string $themeName)

Get real theme path from its name.

string
getNewThemePath(string $themeName)

No description

getThemeReflectionClass($className)

No description

string|null
getThemeReflectionClassPath($className)

No description

string
getThemeName(string $name)

No description

string
getThemeFolderName($themeName)

No description

string
generateThemeSymlink(string $themeName, string $expectedMethod)

No description

execute(InputInterface $input, OutputInterface $output)

No description

importThemeData(string $classname, $text)

No description

importThemeNodes($classname, $text)

No description

array
getThemeConfig()

No description

importTheme(string $classname, $text)

No description

Details

protected configure()

__construct()

string validateThemeName($name)

Parameters

$name

Return Value

string

protected string getThemePath(string $themeName)

Get real theme path from its name.

Attention: theme could be located in vendor folder (/vendor/roadiz/roadiz)

Parameters

string $themeName Theme name WITH «Theme» suffix.

Return Value

string Theme absolute path.

protected string getNewThemePath(string $themeName)

Parameters

string $themeName Theme name WITH «Theme» suffix.

Return Value

string

protected null|ReflectionClass getThemeReflectionClass($className)

Parameters

$className

Return Value

null|ReflectionClass

protected string|null getThemeReflectionClassPath($className)

Parameters

$className

Return Value

string|null

protected string getThemeName(string $name)

Parameters

string $name Theme name WITHOUT suffix.

Return Value

string

protected string getThemeFolderName($themeName)

Parameters

$themeName

Return Value

string

Parameters

string $themeName Theme name WITH suffix.
string $expectedMethod

Return Value

string

protected execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

protected importThemeData(string $classname, $text)

Parameters

string $classname
$text

protected importThemeNodes($classname, $text)

Parameters

$classname
$text

protected array getThemeConfig()

Return Value

array

protected importTheme(string $classname, $text)

Parameters

string $classname
$text