Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
__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? |
public __construct ( Composer\Composer $composer ) | ||
$composer | Composer\Composer |
public addDuplicateLinks ( string $type, array $packages ) | ||
$type | string | Package type |
$packages | array |
public forceUpdate ( ) : true | ||
return | true | If packages are not locked |
public getDuplicateLinks ( string $type ) : array | ||
$type | string | Package type |
return | array |
public getIncludes ( ) : array | ||
return | array |
public getRequires ( ) : array | ||
return | array |
public isFirstInstall ( ) : boolean | ||
return | boolean |
public recurseIncludes ( ) : boolean | ||
return | boolean |
public replaceDuplicateLinks ( ) : boolean | ||
return | boolean |
public setDumpAutoloader ( boolean $flag ) | ||
$flag | boolean |
public setFirstInstall ( boolean $flag ) | ||
$flag | boolean |
public setOptimizeAutoloader ( boolean $flag ) | ||
$flag | boolean |
public shouldDumpAutoloader ( ) : boolean | ||
return | boolean |
public shouldMergeDev ( ) : boolean | ||
return | boolean |
public shouldMergeExtra ( ) : boolean | ||
return | boolean |
public shouldMergeExtraDeep ( ) : boolean | ||
return | boolean |
public shouldOptimizeAutoloader ( ) : boolean | ||
return | boolean |
protected bool $mergeDev | ||
return | boolean |
protected bool $mergeExtra | ||
return | boolean |
protected bool $mergeExtraDeep | ||
return | boolean |