PHP Class LEtudiant\Composer\Installer\SharedPackageInstaller

Author: Sylvain Lorinet ([email protected])
Inheritance: extends Composer\Installer\LibraryInstaller
Datei anzeigen Open project: letudiant/composer-shared-package-plugin Class Usage Examples

Protected Properties

Property Type Description
$config LEtudiant\Composer\Installer\Config\SharedPackageInstallerConfig
$filesystem LEtudiant\Composer\Util\SymlinkFilesystem
$packageDataManager LEtudiant\Composer\Data\Package\PackageDataManagerInterface

Public Methods

Method Description
__construct ( Composer\IO\IOInterface $io, Composer\Composer $composer, SymlinkFilesystem $filesystem, LEtudiant\Composer\Data\Package\PackageDataManagerInterface $dataManager, SharedPackageInstallerConfig $config )
getInstallPath ( Composer\Package\PackageInterface $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 )

Protected Methods

Method Description
createPackageVendorSymlink ( Composer\Package\PackageInterface $package )
getPackageVendorSymlink ( Composer\Package\PackageInterface $package ) : string
getSymlinkSourcePath ( Composer\Package\PackageInterface $package ) : string
isSourceDirUnused ( Composer\Package\PackageInterface $package ) : boolean Detect if other project use the dependency by using the "packages.json" file
removePackageVendorSymlink ( Composer\Package\PackageInterface $package )

Method Details

__construct() public method

public __construct ( Composer\IO\IOInterface $io, Composer\Composer $composer, SymlinkFilesystem $filesystem, LEtudiant\Composer\Data\Package\PackageDataManagerInterface $dataManager, SharedPackageInstallerConfig $config )
$io Composer\IO\IOInterface
$composer Composer\Composer
$filesystem LEtudiant\Composer\Util\SymlinkFilesystem
$dataManager LEtudiant\Composer\Data\Package\PackageDataManagerInterface
$config LEtudiant\Composer\Installer\Config\SharedPackageInstallerConfig

getInstallPath() public method

public getInstallPath ( Composer\Package\PackageInterface $package )
$package Composer\Package\PackageInterface

getSymlinkSourcePath() protected method

protected getSymlinkSourcePath ( 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

isSourceDirUnused() protected method

Detect if other project use the dependency by using the "packages.json" file
protected isSourceDirUnused ( Composer\Package\PackageInterface $package ) : boolean
$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

$config protected_oe property

protected SharedPackageInstallerConfig,LEtudiant\Composer\Installer\Config $config
return LEtudiant\Composer\Installer\Config\SharedPackageInstallerConfig

$filesystem protected_oe property

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

$packageDataManager protected_oe property

protected PackageDataManagerInterface,LEtudiant\Composer\Data\Package $packageDataManager
return LEtudiant\Composer\Data\Package\PackageDataManagerInterface