Properties

$composer

$composer : 

Type

$vendorDir

$vendorDir : 

Type

$binDir

$binDir : 

Type

$downloadManager

$downloadManager : 

Type

$io

$io : 

Type

$type

$type : 

Type

$filesystem

$filesystem : 

Type

$binCompat

$binCompat : 

Type

$binaryInstaller

$binaryInstaller : 

Type

$installationManager

$installationManager : 

Type

Methods

supports()

supports(string  $packageType) : boolean

Decides if the installer supports the given type

Parameters

string $packageType

Returns

boolean

getInstallPath()

getInstallPath(\Composer\Package\PackageInterface  $package) : string

Returns the installation path of a package

Parameters

\Composer\Package\PackageInterface $package

Returns

string —

path

ensureBinariesPresence()

ensureBinariesPresence(\Composer\Package\PackageInterface  $package) 

Make sure binaries are installed for a given package.

Parameters

\Composer\Package\PackageInterface $package

Package instance

getPackageBasePath()

getPackageBasePath(\Composer\Package\PackageInterface  $package) : string

Returns the base path of the package without target-dir path

It is used for BC as getInstallPath tends to be overridden by installer plugins but not getPackageBasePath

Parameters

\Composer\Package\PackageInterface $package

Returns

string

initializeVendorDir()

initializeVendorDir()