\Composer\InstallersOxidInstaller

Summary

Methods
Properties
Constants
__construct()
getInstallPath()
inflectPackageVars()
getLocations()
No public properties found
VENDOR_PATTERN
templatePath()
mapCustomInstallPaths()
prepareVendorDirectory()
$locations
$composer
$package
$io
N/A
No private methods found
No private properties found
N/A

Constants

VENDOR_PATTERN

VENDOR_PATTERN = '/^modules\/(?P<vendor>.+)\/.+/'

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 = '') : void

getInstallPath

Parameters

\Composer\Package\PackageInterface $package
string $frameworkType

inflectPackageVars()

inflectPackageVars(array  $vars) : array

For an installer to override to modify the vars per installer.

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

prepareVendorDirectory()

prepareVendorDirectory(string  $installPath) : void

prepareVendorDirectory

Makes sure there is a vendormetadata.php file inside the vendor folder if there is a vendor folder.

Parameters

string $installPath