PackageManagerInterface
in
Package manager interface
Table of Contents
Methods
- createBackup() : bool
- Create zip arhive with package files and save to storage/backup/
- createPackage() : PackageInterface
- Create package obj
- disablePackage() : bool
- Disable package
- enablePackage() : bool
- Enable package
- findPackage() : PackageInterface|false
- Find package
- getInstalled() : array<string|int, mixed>
- Return installed packages
- getPackageProperties() : Collection|null
- Get package properties
- getPackages() : mixed
- Get packages list
- getRepository() : RepositoryInterface
- Get package repository
- installAllPackages() : mixed
- Install all packages
- installPackage() : mixed
- Install package
- postInstallPackage() : mixed
- Run post install actions on package
- unInstallPackage() : bool
- Uninstall package
Methods
createBackup()
Create zip arhive with package files and save to storage/backup/
public
createBackup(string $name) : bool
Parameters
- $name : string
Return values
boolcreatePackage()
Create package obj
public
createPackage(string $name) : PackageInterface
Parameters
- $name : string
Return values
PackageInterfacedisablePackage()
Disable package
public
disablePackage(string $name) : bool
Parameters
- $name : string
Return values
boolenablePackage()
Enable package
public
enablePackage(string $name) : bool
Parameters
- $name : string
Return values
boolfindPackage()
Find package
public
findPackage(string $param, mixed $value) : PackageInterface|false
Parameters
- $param : string
- $value : mixed
Return values
PackageInterface|falsegetInstalled()
Return installed packages
public
getInstalled([mixed|null $status = null ][, mixed|null $type = null ]) : array<string|int, mixed>
Parameters
- $status : mixed|null = null
- $type : mixed|null = null
Return values
array<string|int, mixed>getPackageProperties()
Get package properties
public
getPackageProperties(string $name[, bool $full = false ]) : Collection|null
Parameters
- $name : string
- $full : bool = false
Return values
Collection|nullgetPackages()
Get packages list
public
getPackages([bool $cached = false ][, mixed $filter = null ]) : mixed
Parameters
- $cached : bool = false
- $filter : mixed = null
getRepository()
Get package repository
public
getRepository(string $packageName) : RepositoryInterface
Parameters
- $packageName : string
Return values
RepositoryInterfaceinstallAllPackages()
Install all packages
public
installAllPackages() : mixed
@return bool
installPackage()
Install package
public
installPackage(string $name) : mixed
Parameters
- $name : string
postInstallPackage()
Run post install actions on package
public
postInstallPackage(string $name) : mixed
Parameters
- $name : string
unInstallPackage()
Uninstall package
public
unInstallPackage(string $name) : bool
Parameters
- $name : string