PHP Class Composer\Installers\Installer

Inheritance: extends Composer\Installer\LibraryInstaller
Show file Open project: composer/installers Class Usage Examples

Public Methods

Method Description
getInstallPath ( Composer\Package\PackageInterface $package ) {@inheritDoc}
supports ( $packageType ) {@inheritDoc}
uninstall ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package )

Protected Methods

Method Description
findFrameworkType ( string $type ) : string Finds a supported framework type if it exists and returns it
getLocationPattern ( string $frameworkType ) : string Get the second part of the regular expression to check for support of a package type

Private Methods

Method Description
getIO ( ) : Composer\IO\IOInterface Get I/O object

Method Details

findFrameworkType() protected method

Finds a supported framework type if it exists and returns it
protected findFrameworkType ( string $type ) : string
$type string
return string

getInstallPath() public method

{@inheritDoc}
public getInstallPath ( Composer\Package\PackageInterface $package )
$package Composer\Package\PackageInterface

getLocationPattern() protected method

Get the second part of the regular expression to check for support of a package type
protected getLocationPattern ( string $frameworkType ) : string
$frameworkType string
return string

supports() public method

{@inheritDoc}
public supports ( $packageType )

uninstall() public method

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