PHP 클래스 Pagekit\Installer\Helper\Composer

파일 보기 프로젝트 열기: pagekit/pagekit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$file string
$io Composer\IO\ConsoleIO
$output Symfony\Component\Console\Output\OutputInterface
$packages array

공개 메소드들

메소드 설명
__construct ( array $config, null $output = null )
install ( array $install, boolean $packagist = false, boolean $writeConfig = true, boolean $preferSource = false ) : boolean
isInstalled ( $name ) : boolean Checks if a package is installed by composer.
uninstall ( array | string $uninstall, boolean $writeConfig = true )

보호된 메소드들

메소드 설명
addPackages ( $packages ) : array
composerUpdate ( array | boolean $updates = false, array $refresh = [], boolean $packagist = false, boolean $preferSource = false ) : boolean Runs Composer Update command.
getComposer ( boolean $packagist = false ) : null Returns composer instance.
getIO ( ) : Pagekit\Installer\Helper\InstallerIO
memoryInBytes ( $value ) : integer Converts memory value from 'php.ini' into bytes.
readConfig ( ) : array Reads packages from package file.
removePackages ( $packages ) : array
writeConfig ( ) Writes changes to packages file.

메소드 상세

__construct() 공개 메소드

public __construct ( array $config, null $output = null )
$config array
$output null

addPackages() 보호된 메소드

protected addPackages ( $packages ) : array
$packages
리턴 array

composerUpdate() 보호된 메소드

Runs Composer Update command.
protected composerUpdate ( array | boolean $updates = false, array $refresh = [], boolean $packagist = false, boolean $preferSource = false ) : boolean
$updates array | boolean
$refresh array
$packagist boolean
$preferSource boolean
리턴 boolean

getComposer() 보호된 메소드

Returns composer instance.
protected getComposer ( boolean $packagist = false ) : null
$packagist boolean
리턴 null

getIO() 보호된 메소드

protected getIO ( ) : Pagekit\Installer\Helper\InstallerIO
리턴 Pagekit\Installer\Helper\InstallerIO

install() 공개 메소드

public install ( array $install, boolean $packagist = false, boolean $writeConfig = true, boolean $preferSource = false ) : boolean
$install array [name => version, name => version, ...]
$packagist boolean
$writeConfig boolean
$preferSource boolean
리턴 boolean

isInstalled() 공개 메소드

Checks if a package is installed by composer.
public isInstalled ( $name ) : boolean
$name
리턴 boolean

memoryInBytes() 보호된 메소드

Converts memory value from 'php.ini' into bytes.
protected memoryInBytes ( $value ) : integer
$value
리턴 integer

readConfig() 보호된 메소드

Reads packages from package file.
protected readConfig ( ) : array
리턴 array

removePackages() 보호된 메소드

protected removePackages ( $packages ) : array
$packages
리턴 array

uninstall() 공개 메소드

public uninstall ( array | string $uninstall, boolean $writeConfig = true )
$uninstall array | string [name, name, ...]
$writeConfig boolean

writeConfig() 보호된 메소드

Writes changes to packages file.
protected writeConfig ( )

프로퍼티 상세

$file 보호되어 있는 프로퍼티

protected string $file
리턴 string

$io 보호되어 있는 프로퍼티

protected ConsoleIO,Composer\IO $io
리턴 Composer\IO\ConsoleIO

$output 보호되어 있는 프로퍼티

protected OutputInterface,Symfony\Component\Console\Output $output
리턴 Symfony\Component\Console\Output\OutputInterface

$packages 보호되어 있는 프로퍼티

protected array $packages
리턴 array