PHP Класс Wikimedia\Composer\Merge\PluginState

Автор: Bryan Davis ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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?
public shouldOptimizeAutoloader ( ) : boolean
Результат boolean

Описание свойств

$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