Installer
in package
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- install() : void
- downloadAndVerify() : SplFileInfo
- downloadPhar() : SplFileInfo
- downloadSignature() : SplFileInfo
- verifyPharWithSignature() : void
Properties
$event
private
PackageEvent
$event
$gpg
private
GnuPG|null
$gpg
$io
private
IOInterface
$io
$keys
private
KeyDirectory|null
$keys
$name
private
string
$name
Methods
__construct()
public
__construct(string $name, IOInterface $io, PackageEvent $event) : mixed
Parameters
- $name : string
- $io : IOInterface
- $event : PackageEvent
install()
public
install(FileList $fileList, KeyDirectory|null $keys, GnuPG|null $gnuPG) : void
Parameters
- $fileList : FileList
- $keys : KeyDirectory|null
- $gnuPG : GnuPG|null
downloadAndVerify()
private
downloadAndVerify(VersionConstraintReplacer $versionReplacer, File $file) : SplFileInfo
Parameters
- $versionReplacer : VersionConstraintReplacer
- $file : File
Return values
SplFileInfodownloadPhar()
private
downloadPhar(VersionConstraintReplacer $versionReplacer, File $file) : SplFileInfo
Parameters
- $versionReplacer : VersionConstraintReplacer
- $file : File
Return values
SplFileInfodownloadSignature()
private
downloadSignature(VersionConstraintReplacer $versionReplacer, File $file) : SplFileInfo
Parameters
- $versionReplacer : VersionConstraintReplacer
- $file : File
Return values
SplFileInfoverifyPharWithSignature()
private
verifyPharWithSignature(SplFileInfo $pharLocation, SplFileInfo $signatureLocation) : void
Parameters
- $pharLocation : SplFileInfo
- $signatureLocation : SplFileInfo