\Composer\InstallersBitrixInstaller

Installer for Bitrix Framework. Supported types of extensions: - `bitrix-d7-module` — copy the module to directory `bitrix/modules/<vendor>.<name>`.

  • bitrix-d7-component — copy the component to directory bitrix/components/<vendor>/<name>.
  • bitrix-d7-template — copy the template to directory bitrix/templates/<vendor>_<name>.

You can set custom path to directory with Bitrix kernel in composer.json:

{
     "extra": {
         "bitrix-dir": "s1/bitrix"
     }
}

Summary

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

Properties

$locations

$locations : 

Type

$composer

$composer : 

Type

$package

$package : 

Type

$io

$io : 

Type

$checkedDuplicates

$checkedDuplicates : array

Type

array — Storage for informations about duplicates at all the time of installation packages.

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

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

checkDuplicates()

checkDuplicates(string  $path, array  $vars = array()) 

Duplicates search packages.

Parameters

string $path
array $vars