Properties

$locations

$locations : 

Type

$composer

$composer : 

Type

$package

$package : 

Type

$io

$io : 

Type

Methods

__construct()

__construct(\Composer\Package\PackageInterface  $package = null, \Composer\Composer  $composer = null, \Composer\IO\IOInterface  $io = null) 

Initializes base installer.

Parameters

\Composer\Package\PackageInterface $package
\Composer\Composer $composer
\Composer\IO\IOInterface $io

getInstallPath()

getInstallPath(\Composer\Package\PackageInterface  $package, string  $frameworkType = '') : string

Return the install path based on package type.

Parameters

\Composer\Package\PackageInterface $package
string $frameworkType

Returns

string

inflectPackageVars()

inflectPackageVars(array  $vars) : array

Format package name.

For package type microweber-module, cut off a trailing '-module' if present

For package type microweber-template, cut off a trailing '-template' if present.

Parameters

array $vars

Returns

array

getLocations()

getLocations() : array

Gets the installer's locations

Returns

array

templatePath()

templatePath(string  $path, array  $vars = array()) : string

Replace vars in a path

Parameters

string $path
array $vars

Returns

string

mapCustomInstallPaths()

mapCustomInstallPaths(array  $paths, string  $name, string  $type, string  $vendor = NULL) : string

Search through a passed paths array for a custom install path.

Parameters

array $paths
string $name
string $type
string $vendor

= NULL

Returns

string

inflectTemplateVars()

inflectTemplateVars(  $vars) 

Parameters

$vars

inflectTemplatesVars()

inflectTemplatesVars(  $vars) 

Parameters

$vars

inflectCoreVars()

inflectCoreVars(  $vars) 

Parameters

$vars

inflectModuleVars()

inflectModuleVars(  $vars) 

Parameters

$vars

inflectModulesVars()

inflectModulesVars(  $vars) 

Parameters

$vars

inflectSkinVars()

inflectSkinVars(  $vars) 

Parameters

$vars

inflectElementVars()

inflectElementVars(  $vars) 

Parameters

$vars