\Composer\InstallersInstaller

Summary

Methods
Properties
Constants
__construct()
getInstallPath()
uninstall()
supports()
No public properties found
No constants found
findFrameworkType()
getLocationPattern()
removeDisabledInstallers()
No protected properties found
N/A
getIO()
$supportedTypes
N/A

Properties

$supportedTypes

$supportedTypes : array

Package types to installer class map

Type

array

Methods

__construct()

__construct(\Composer\IO\IOInterface  $io, \Composer\Composer  $composer, string  $type = 'library', \Composer\Util\Filesystem|null  $filesystem = null, \Composer\Installer\BinaryInstaller|null  $binaryInstaller = null) 

Installer constructor.

Disables installers specified in main composer extra installer-disable list

Parameters

\Composer\IO\IOInterface $io
\Composer\Composer $composer
string $type
\Composer\Util\Filesystem|null $filesystem
\Composer\Installer\BinaryInstaller|null $binaryInstaller

getInstallPath()

getInstallPath(\Composer\Package\PackageInterface  $package) 

{@inheritDoc}

Parameters

\Composer\Package\PackageInterface $package

uninstall()

uninstall(\Composer\Repository\InstalledRepositoryInterface  $repo, \Composer\Package\PackageInterface  $package) 

Parameters

\Composer\Repository\InstalledRepositoryInterface $repo
\Composer\Package\PackageInterface $package

supports()

supports(  $packageType) 

{@inheritDoc}

Parameters

$packageType

findFrameworkType()

findFrameworkType(string  $type) : string

Finds a supported framework type if it exists and returns it

Parameters

string $type

Returns

string

getLocationPattern()

getLocationPattern(string  $frameworkType) : string

Get the second part of the regular expression to check for support of a package type

Parameters

string $frameworkType

Returns

string

removeDisabledInstallers()

removeDisabledInstallers() : void

Look for installers set to be disabled in composer's extra config and remove them from the list of supported installers.

Globals:

  • true, "all", and "*" - disable all installers.
  • false - enable all installers (useful with wikimedia/composer-merge-plugin or similar)

getIO()

getIO() : \Composer\IO\IOInterface

Get I/O object

Returns

\Composer\IO\IOInterface