InstallationManager
in package
Package operation manager.
Tags
Table of Contents
- $cache : mixed
- $installers : mixed
- $notifiablePackages : mixed
- addInstaller() : mixed
- Adds installer
- disablePlugins() : mixed
- Disables plugins.
- ensureBinariesPresence() : mixed
- Install binary for the given package.
- execute() : mixed
- Executes solver operation.
- getInstaller() : InstallerInterface
- Returns installer for a specific package type.
- getInstallPath() : string
- Returns the installation path of a package
- install() : mixed
- Executes install operation.
- isPackageInstalled() : bool
- Checks whether provided package is installed in one of the registered installers.
- markAliasInstalled() : mixed
- Executes markAliasInstalled operation.
- markAliasUninstalled() : mixed
- Executes markAlias operation.
- notifyInstalls() : mixed
- removeInstaller() : mixed
- Removes installer
- reset() : mixed
- uninstall() : mixed
- Uninstalls package.
- update() : mixed
- Executes update operation.
- markForNotification() : mixed
Properties
$cache
private
mixed
$cache
= array()
$installers
private
mixed
$installers
= array()
$notifiablePackages
private
mixed
$notifiablePackages
= array()
Methods
addInstaller()
Adds installer
public
addInstaller(InstallerInterface $installer) : mixed
Parameters
- $installer : InstallerInterface
-
installer instance
Return values
mixed —disablePlugins()
Disables plugins.
public
disablePlugins() : mixed
We prevent any plugins from being instantiated by simply deactivating the installer for them. This ensure that no third-party code is ever executed.
Return values
mixed —ensureBinariesPresence()
Install binary for the given package.
public
ensureBinariesPresence(PackageInterface $package) : mixed
If the installer associated to this package doesn't handle that function, it'll do nothing.
Parameters
- $package : PackageInterface
-
Package instance
Return values
mixed —execute()
Executes solver operation.
public
execute(RepositoryInterface $repo, OperationInterface $operation) : mixed
Parameters
- $repo : RepositoryInterface
-
repository in which to check
- $operation : OperationInterface
-
operation instance
Return values
mixed —getInstaller()
Returns installer for a specific package type.
public
getInstaller(string $type) : InstallerInterface
Parameters
- $type : string
-
package type
Tags
Return values
InstallerInterface —getInstallPath()
Returns the installation path of a package
public
getInstallPath(PackageInterface $package) : string
Parameters
- $package : PackageInterface
Return values
string —path
install()
Executes install operation.
public
install(RepositoryInterface $repo, InstallOperation $operation) : mixed
Parameters
- $repo : RepositoryInterface
-
repository in which to check
- $operation : InstallOperation
-
operation instance
Return values
mixed —isPackageInstalled()
Checks whether provided package is installed in one of the registered installers.
public
isPackageInstalled(InstalledRepositoryInterface $repo, PackageInterface $package) : bool
Parameters
- $repo : InstalledRepositoryInterface
-
repository in which to check
- $package : PackageInterface
-
package instance
Return values
bool —markAliasInstalled()
Executes markAliasInstalled operation.
public
markAliasInstalled(RepositoryInterface $repo, MarkAliasInstalledOperation $operation) : mixed
Parameters
- $repo : RepositoryInterface
-
repository in which to check
- $operation : MarkAliasInstalledOperation
-
operation instance
Return values
mixed —markAliasUninstalled()
Executes markAlias operation.
public
markAliasUninstalled(RepositoryInterface $repo, MarkAliasUninstalledOperation $operation) : mixed
Parameters
- $repo : RepositoryInterface
-
repository in which to check
- $operation : MarkAliasUninstalledOperation
-
operation instance
Return values
mixed —notifyInstalls()
public
notifyInstalls(IOInterface $io) : mixed
Parameters
- $io : IOInterface
Return values
mixed —removeInstaller()
Removes installer
public
removeInstaller(InstallerInterface $installer) : mixed
Parameters
- $installer : InstallerInterface
-
installer instance
Return values
mixed —reset()
public
reset() : mixed
Return values
mixed —uninstall()
Uninstalls package.
public
uninstall(RepositoryInterface $repo, UninstallOperation $operation) : mixed
Parameters
- $repo : RepositoryInterface
-
repository in which to check
- $operation : UninstallOperation
-
operation instance
Return values
mixed —update()
Executes update operation.
public
update(RepositoryInterface $repo, UpdateOperation $operation) : mixed
Parameters
- $repo : RepositoryInterface
-
repository in which to check
- $operation : UpdateOperation
-
operation instance
Return values
mixed —markForNotification()
private
markForNotification(PackageInterface $package) : mixed
Parameters
- $package : PackageInterface