Composer\Installers\BitrixInstaller
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`:
```json
{
"extra": {
"bitrix-dir": "s1/bitrix"
}
}
```
- Author: Nik Samokhvalov <nik@samokhvalov.info>
Synopsis
class BitrixInstaller
extends BaseInstaller
{
- // members
- protected array<string $locations = ;
- private static array $checkedDuplicates = ;
- // Inherited members from BaseInstaller
- protected array<string $locations;
- protected Composer $composer;
- protected PackageInterface $package;
- protected IOInterface $io;
- // methods
- public void inflectPackageVars()
- protected void templatePath()
- protected void checkDuplicates()
- // Inherited methods from BaseInstaller
- public void __construct()
- public void getInstallPath()
- public array<string inflectPackageVars()
- public array<string getLocations()
- protected void templatePath()
- protected string|false mapCustomInstallPaths()
- protected void pregReplace()
Hierarchy
Members
private
- $checkedDuplicates — array
protected
- $composer — Composer\Composer
- $io — Composer\IO\IOInterface
- $locations — Composer\Installers\array<string
- $locations — Composer\Installers\array<string
- $package — Composer\Package\PackageInterface
Methods
protected
- checkDuplicates() — Duplicates search packages.
- templatePath() — {@inheritdoc}
public
Inherited from Composer\Installers\BaseInstaller
protected
- mapCustomInstallPaths() — Search through a passed paths array for a custom install path.
- pregReplace()
- templatePath() — Replace vars in a path
public
- getInstallPath() — Return the install path based on package type.
- getLocations() — Gets the installer's locations
- inflectPackageVars() — For an installer to override to modify the vars per installer.