PHP Class LEtudiant\Composer\Installer\Solver\SharedPackageInstallerSolver

Author: Sylvain Lorinet ([email protected])
Inheritance: implements Composer\Installer\InstallerInterface
Show file Open project: letudiant/composer-shared-package-plugin

Protected Properties

Property Type Description
$defaultInstaller Composer\Installer\LibraryInstaller
$filesystem LEtudiant\Composer\Util\SymlinkFilesystem
$solver SharedPackageSolver
$symlinkInstaller LEtudiant\Composer\Installer\SharedPackageInstaller

Public Methods

Method Description
__construct ( SharedPackageSolver $solver, SharedPackageInstaller $symlinkInstaller, Composer\Installer\LibraryInstaller $defaultInstaller )
getInstallPath ( Composer\Package\PackageInterface $package ) : string Returns the installation path of a package
install ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package )
isInstalled ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) : boolean
supports ( string $packageType ) : boolean
uninstall ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package )
update ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $initial, Composer\Package\PackageInterface $target )

Method Details

__construct() public method

public __construct ( SharedPackageSolver $solver, SharedPackageInstaller $symlinkInstaller, Composer\Installer\LibraryInstaller $defaultInstaller )
$solver SharedPackageSolver
$symlinkInstaller LEtudiant\Composer\Installer\SharedPackageInstaller
$defaultInstaller Composer\Installer\LibraryInstaller

getInstallPath() public method

Returns the installation path of a package
public getInstallPath ( Composer\Package\PackageInterface $package ) : string
$package Composer\Package\PackageInterface
return string

install() public method

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

isInstalled() public method

public isInstalled ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) : boolean
$repo Composer\Repository\InstalledRepositoryInterface
$package Composer\Package\PackageInterface
return boolean

supports() public method

public supports ( string $packageType ) : boolean
$packageType string
return boolean

uninstall() public method

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

update() public method

public update ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $initial, Composer\Package\PackageInterface $target )
$repo Composer\Repository\InstalledRepositoryInterface
$initial Composer\Package\PackageInterface
$target Composer\Package\PackageInterface

Property Details

$defaultInstaller protected property

protected LibraryInstaller,Composer\Installer $defaultInstaller
return Composer\Installer\LibraryInstaller

$filesystem protected property

protected SymlinkFilesystem,LEtudiant\Composer\Util $filesystem
return LEtudiant\Composer\Util\SymlinkFilesystem

$solver protected property

protected SharedPackageSolver,LEtudiant\Composer\Installer\Solver $solver
return SharedPackageSolver

$symlinkInstaller protected property

protected SharedPackageInstaller,LEtudiant\Composer\Installer $symlinkInstaller
return LEtudiant\Composer\Installer\SharedPackageInstaller