Properties

$installers

$installers : 

Type

$cache

$cache : 

Type

$notifiablePackages

$notifiablePackages : 

Type

Methods

reset()

reset() 

disablePlugins()

disablePlugins() 

Disables plugins.

We prevent any plugins from being instantiated by simply deactivating the installer for them. This ensure that no third-party code is ever executed.

getInstaller()

getInstaller(string  $type) : \Composer\Installer\InstallerInterface

Returns installer for a specific package type.

Parameters

string $type

package type

Throws

\InvalidArgumentException

if installer for provided type is not registered

Returns

\Composer\Installer\InstallerInterface

ensureBinariesPresence()

ensureBinariesPresence(\Composer\Package\PackageInterface  $package) 

Install binary for the given package.

If the installer associated to this package doesn't handle that function, it'll do nothing.

Parameters

\Composer\Package\PackageInterface $package

Package instance

getInstallPath()

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

Returns the installation path of a package

Parameters

\Composer\Package\PackageInterface $package

Returns

string —

path