PHP Class Pagekit\Installer\Package\PackageManager

显示文件 Open project: pagekit/pagekit Class Usage Examples

Protected Properties

Property Type Description
$composer Pagekit\Installer\Helper\Composer
$output Symfony\Component\Console\Output\OutputInterface

Public Methods

Method Description
__construct ( mixed $output = null ) Constructor.
disable ( $packages )
enable ( $packages )
install ( array $install = [], boolean $packagist = false, boolean $preferSource = false ) : boolean
uninstall ( array $uninstall ) : boolean

Protected Methods

Method Description
doInstall ( $package ) : string
getScripts ( array $package, string $current = null ) : PackageScripts
getVersion ( $package ) : string Tries to obtain package version from 'composer.json' or installation log.

Method Details

__construct() public method

Constructor.
public __construct ( mixed $output = null )
$output mixed

disable() public method

public disable ( $packages )
$packages

doInstall() protected method

protected doInstall ( $package ) : string
$package
return string

enable() public method

public enable ( $packages )
$packages

getScripts() protected method

protected getScripts ( array $package, string $current = null ) : PackageScripts
$package array
$current string
return PackageScripts

getVersion() protected method

Tries to obtain package version from 'composer.json' or installation log.
protected getVersion ( $package ) : string
$package
return string

install() public method

public install ( array $install = [], boolean $packagist = false, boolean $preferSource = false ) : boolean
$install array
$packagist boolean
$preferSource boolean
return boolean

uninstall() public method

public uninstall ( array $uninstall ) : boolean
$uninstall array
return boolean

Property Details

$composer protected_oe property

protected Composer,Pagekit\Installer\Helper $composer
return Pagekit\Installer\Helper\Composer

$output protected_oe property

protected OutputInterface,Symfony\Component\Console\Output $output
return Symfony\Component\Console\Output\OutputInterface