PHP 클래스 Wikimedia\Composer\Merge\PluginState

저자: Bryan Davis ([email protected])
파일 보기 프로젝트 열기: wikimedia/composer-merge-plugin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$composer Composer\Composer
$devMode boolean
$dumpAutoloader boolean
$duplicateLinks array
$firstInstall boolean
$includes array
$locked boolean
$mergeDev boolean Whether to merge the -dev sections.
$mergeExtra boolean By default, the extra section is not merged and there will be many cases where the merge of the extra section is performed too late to be of use to other plugins. When enabled, merging uses one of two strategies - either 'first wins' or 'last wins'. When enabled, 'first wins' is the default behaviour. If Replace mode is activated then 'last wins' is used.
$mergeExtraDeep boolean By default the extra section is merged with array_merge() and duplicate keys are ignored. When enabled this allows to merge the arrays recursively using the following rule: Integer keys are merged, while array values are replaced where the later values overwrite the former. This is useful especially for the extra section when plugins use larger structures like a 'patches' key with the packages as sub-keys and the patches as values. When 'replace' mode is activated the order of array merges is exchanged.
$optimizeAutoloader boolean
$recurse boolean
$replace boolean
$requires array

공개 메소드들

메소드 설명
__construct ( Composer\Composer $composer )
addDuplicateLinks ( string $type, array $packages ) Add duplicate packages
forceUpdate ( ) : true Should an update be forced?
getDuplicateLinks ( string $type ) : array Get duplicate packages
getIncludes ( ) : array Get list of filenames and/or glob patterns to include
getRequires ( ) : array Get list of filenames and/or glob patterns to require
isDevMode ( ) : boolean Should devMode settings be processed?
isFirstInstall ( ) : boolean Is this the first time that the plugin has been installed?
isLocked ( ) : boolean Was a lockfile present when the plugin was installed?
loadSettings ( ) Load plugin settings
recurseIncludes ( ) : boolean Should includes be recursively processed?
replaceDuplicateLinks ( ) : boolean Should duplicate links be replaced in a 'last definition wins' order?
setDevMode ( boolean $flag ) Set the devMode flag
setDumpAutoloader ( boolean $flag ) Set the dumpAutoloader flag
setFirstInstall ( boolean $flag ) Set the first install flag
setLocked ( boolean $flag ) Set the locked flag
setOptimizeAutoloader ( boolean $flag ) Set the optimizeAutoloader flag
shouldDumpAutoloader ( ) : boolean Is the autoloader file supposed to be written out?
shouldMergeDev ( ) : boolean Should devMode settings be merged?
shouldMergeExtra ( ) : boolean Should the extra section be merged?
shouldMergeExtraDeep ( ) : boolean Should the extra section be merged deep / recursively?
shouldOptimizeAutoloader ( ) : boolean Should the autoloader be optimized?

메소드 상세

__construct() 공개 메소드

public __construct ( Composer\Composer $composer )
$composer Composer\Composer

forceUpdate() 공개 메소드

Should an update be forced?
public forceUpdate ( ) : true
리턴 true If packages are not locked

getIncludes() 공개 메소드

Get list of filenames and/or glob patterns to include
public getIncludes ( ) : array
리턴 array

getRequires() 공개 메소드

Get list of filenames and/or glob patterns to require
public getRequires ( ) : array
리턴 array

isDevMode() 공개 메소드

Should devMode settings be processed?
public isDevMode ( ) : boolean
리턴 boolean

isFirstInstall() 공개 메소드

Is this the first time that the plugin has been installed?
public isFirstInstall ( ) : boolean
리턴 boolean

isLocked() 공개 메소드

Was a lockfile present when the plugin was installed?
public isLocked ( ) : boolean
리턴 boolean

loadSettings() 공개 메소드

Load plugin settings
public loadSettings ( )

recurseIncludes() 공개 메소드

Should includes be recursively processed?
public recurseIncludes ( ) : boolean
리턴 boolean

setDevMode() 공개 메소드

Set the devMode flag
public setDevMode ( boolean $flag )
$flag boolean

setDumpAutoloader() 공개 메소드

Set the dumpAutoloader flag
public setDumpAutoloader ( boolean $flag )
$flag boolean

setFirstInstall() 공개 메소드

Set the first install flag
public setFirstInstall ( boolean $flag )
$flag boolean

setLocked() 공개 메소드

Set the locked flag
public setLocked ( boolean $flag )
$flag boolean

setOptimizeAutoloader() 공개 메소드

Set the optimizeAutoloader flag
public setOptimizeAutoloader ( boolean $flag )
$flag boolean

shouldDumpAutoloader() 공개 메소드

Is the autoloader file supposed to be written out?
public shouldDumpAutoloader ( ) : boolean
리턴 boolean

shouldMergeDev() 공개 메소드

Should devMode settings be merged?
public shouldMergeDev ( ) : boolean
리턴 boolean

shouldMergeExtra() 공개 메소드

By default, the extra section is not merged and there will be many cases where the merge of the extra section is performed too late to be of use to other plugins. When enabled, merging uses one of two strategies - either 'first wins' or 'last wins'. When enabled, 'first wins' is the default behaviour. If Replace mode is activated then 'last wins' is used.
public shouldMergeExtra ( ) : boolean
리턴 boolean

shouldMergeExtraDeep() 공개 메소드

By default the extra section is merged with array_merge() and duplicate keys are ignored. When enabled this allows to merge the arrays recursively using the following rule: Integer keys are merged, while array values are replaced where the later values overwrite the former. This is useful especially for the extra section when plugins use larger structures like a 'patches' key with the packages as sub-keys and the patches as values. When 'replace' mode is activated the order of array merges is exchanged.
public shouldMergeExtraDeep ( ) : boolean
리턴 boolean

shouldOptimizeAutoloader() 공개 메소드

Should the autoloader be optimized?

프로퍼티 상세

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

protected Composer,Composer $composer
리턴 Composer\Composer

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

protected bool $devMode
리턴 boolean

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

protected bool $dumpAutoloader
리턴 boolean

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

protected bool $firstInstall
리턴 boolean

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

protected array $includes
리턴 array

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

protected bool $locked
리턴 boolean

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

Whether to merge the -dev sections.
protected bool $mergeDev
리턴 boolean

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

By default, the extra section is not merged and there will be many cases where the merge of the extra section is performed too late to be of use to other plugins. When enabled, merging uses one of two strategies - either 'first wins' or 'last wins'. When enabled, 'first wins' is the default behaviour. If Replace mode is activated then 'last wins' is used.
protected bool $mergeExtra
리턴 boolean

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

By default the extra section is merged with array_merge() and duplicate keys are ignored. When enabled this allows to merge the arrays recursively using the following rule: Integer keys are merged, while array values are replaced where the later values overwrite the former. This is useful especially for the extra section when plugins use larger structures like a 'patches' key with the packages as sub-keys and the patches as values. When 'replace' mode is activated the order of array merges is exchanged.
protected bool $mergeExtraDeep
리턴 boolean

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

protected bool $optimizeAutoloader
리턴 boolean

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

protected bool $recurse
리턴 boolean

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

protected bool $replace
리턴 boolean

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

protected array $requires
리턴 array