PHP Class LEtudiant\Composer\Installer\Solver\SharedPackageInstallerSolver

Author: Sylvain Lorinet ([email protected])
Inheritance: implements Composer\Installer\InstallerInterface
Mostra 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_oe property

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

$filesystem protected_oe property

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

$solver protected_oe property

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

$symlinkInstaller protected_oe property

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