ProjectInstaller
in package
implements
InstallerInterface
Project Installer is used to install a single package into a directory as root project.
Tags
Interfaces, Classes and Traits
- InstallerInterface
- Interface for the package installation manager.
Table of Contents
- $downloadManager : mixed
- $filesystem : mixed
- $installPath : mixed
- __construct() : mixed
- getInstallPath() : string
- Returns the installation path of a package
- install() : mixed
- Installs specific package.
- isInstalled() : bool
- Checks that provided package is installed.
- supports() : bool
- Decides if the installer supports the given type
- uninstall() : mixed
- Uninstalls specific package.
- update() : mixed
- Updates specific package.
Properties
$downloadManager
private
mixed
$downloadManager
$filesystem
private
mixed
$filesystem
$installPath
private
mixed
$installPath
Methods
__construct()
public
__construct(mixed $installPath, DownloadManager $dm) : mixed
Parameters
- $installPath : mixed
- $dm : DownloadManager
Return values
mixed —getInstallPath()
Returns the installation path of a package
public
getInstallPath(PackageInterface $package) : string
Parameters
- $package : PackageInterface
Return values
string —path
install()
Installs specific package.
public
install(InstalledRepositoryInterface $repo, PackageInterface $package) : mixed
Parameters
- $repo : InstalledRepositoryInterface
-
repository in which to check
- $package : PackageInterface
-
package instance
Return values
mixed —isInstalled()
Checks that provided package is installed.
public
isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package) : bool
Parameters
- $repo : InstalledRepositoryInterface
-
repository in which to check
- $package : PackageInterface
-
package instance
Return values
bool —supports()
Decides if the installer supports the given type
public
supports(string $packageType) : bool
Parameters
- $packageType : string
Return values
bool —uninstall()
Uninstalls specific package.
public
uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) : mixed
Parameters
- $repo : InstalledRepositoryInterface
-
repository in which to check
- $package : PackageInterface
-
package instance
Return values
mixed —update()
Updates specific package.
public
update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) : mixed
Parameters
- $repo : InstalledRepositoryInterface
-
repository in which to check
- $initial : PackageInterface
-
already installed package version
- $target : PackageInterface
-
updated version