Property | Type | Description | |
---|---|---|---|
$composer | Composer\Composer | ||
$json | array | ||
$logger | Wikimedia\Composer\Logger | ||
$package | Composer\Package\CompletePackage | ||
$path | string | ||
$versionParser | Composer\Package\Version\VersionParser |
Method | Description | |
---|---|---|
__construct ( string $path, Composer\Composer $composer, Wikimedia\Composer\Logger $logger ) | ||
getIncludes ( ) : array | Get list of additional packages to include if precessing recursively. | |
getRequires ( ) : array | Get list of additional packages to require if precessing recursively. | |
mergeDevInto ( Composer\Package\RootPackageInterface $root, |
Merge just the dev portion into a RootPackageInterface | |
mergeExtra ( Composer\Package\RootPackageInterface $root, |
Merge extra config into a RootPackageInterface | |
mergeExtraArray ( boolean $mergeDeep, array $array1, array $array2 ) : array | Merges two arrays either via arrayMergeDeep or via array_merge. | |
mergeInto ( Composer\Package\RootPackageInterface $root, |
Merge this package into a RootPackageInterface | |
unwrapIfNeeded ( Composer\Package\RootPackageInterface $root, string $method = 'setExtra' ) : Composer\Package\RootPackageInterface | Composer\Package\RootPackage | Get a full featured Package from a RootPackageInterface. |
Method | Description | |
---|---|---|
extractReferences ( array $requires, array $references ) : array | Extract vcs revision from version constraint (dev-master#abc123. | |
fixRelativePaths ( array $paths ) : array | Fix a collection of paths that are relative to this package to be relative to the base package. | |
loadPackage ( array $json ) : Composer\Package\CompletePackage | ||
mergeAutoload ( string $type, Composer\Package\RootPackageInterface $root ) | Merge autoload or autoload-dev into a RootPackageInterface | |
mergeOrDefer ( string $type, array $origin, array $merge, |
Merge two collections of package links and collect duplicates for subsequent processing. | |
mergePackageLinks ( string $type, Composer\Package\RootPackageInterface $root ) | Merge package links of the given type into a RootPackageInterface | |
mergeReferences ( Composer\Package\RootPackageInterface $root ) | Update the root packages reference information. | |
mergeRequires ( string $type, Composer\Package\RootPackageInterface $root, |
Merge require or require-dev into a RootPackageInterface | |
mergeStabilityFlags ( Composer\Package\RootPackageInterface $root, array $requires ) | Extract and merge stability flags from the given collection of requires and merge them into a RootPackageInterface | |
mergeSuggests ( Composer\Package\RootPackageInterface $root ) | Merge suggested packages into a RootPackageInterface | |
prependRepositories ( Composer\Package\RootPackageInterface $root ) | Add a collection of repositories described by the given configuration to the given package and the global repository manager. | |
readPackageJson ( string $path ) : array | Read the contents of a composer.json style file into an array. | |
replaceSelfVersionDependencies ( string $type, array $links, Composer\Package\RootPackageInterface $root ) : array | Update Links with a 'self.version' constraint with the root package's version. |
public __construct ( string $path, Composer\Composer $composer, Wikimedia\Composer\Logger $logger ) | ||
$path | string | Path to composer.json file |
$composer | Composer\Composer | |
$logger | Wikimedia\Composer\Logger |
protected fixRelativePaths ( array $paths ) : array | ||
$paths | array | |
return | array |
public getIncludes ( ) : array | ||
return | array |
public getRequires ( ) : array | ||
return | array |
protected loadPackage ( array $json ) : Composer\Package\CompletePackage | ||
$json | array | |
return | Composer\Package\CompletePackage |
protected mergeAutoload ( string $type, Composer\Package\RootPackageInterface $root ) | ||
$type | string | 'autoload' or 'devAutoload' |
$root | Composer\Package\RootPackageInterface |
public mergeDevInto ( Composer\Package\RootPackageInterface $root, |
||
$root | Composer\Package\RootPackageInterface | |
$state |
public mergeExtra ( Composer\Package\RootPackageInterface $root, |
||
$root | Composer\Package\RootPackageInterface | |
$state |
public mergeInto ( Composer\Package\RootPackageInterface $root, |
||
$root | Composer\Package\RootPackageInterface | |
$state |
protected mergePackageLinks ( string $type, Composer\Package\RootPackageInterface $root ) | ||
$type | string | 'conflict', 'replace' or 'provide' |
$root | Composer\Package\RootPackageInterface |
protected mergeReferences ( Composer\Package\RootPackageInterface $root ) | ||
$root | Composer\Package\RootPackageInterface |
protected mergeRequires ( string $type, Composer\Package\RootPackageInterface $root, |
||
$type | string | 'require' or 'require-dev' |
$root | Composer\Package\RootPackageInterface | |
$state |
protected mergeStabilityFlags ( Composer\Package\RootPackageInterface $root, array $requires ) | ||
$root | Composer\Package\RootPackageInterface | |
$requires | array |
protected mergeSuggests ( Composer\Package\RootPackageInterface $root ) | ||
$root | Composer\Package\RootPackageInterface |
protected prependRepositories ( Composer\Package\RootPackageInterface $root ) | ||
$root | Composer\Package\RootPackageInterface |
protected readPackageJson ( string $path ) : array | ||
$path | string | |
return | array |
public static unwrapIfNeeded ( Composer\Package\RootPackageInterface $root, string $method = 'setExtra' ) : Composer\Package\RootPackageInterface | Composer\Package\RootPackage | ||
$root | Composer\Package\RootPackageInterface | |
$method | string | Method needed |
return | Composer\Package\RootPackageInterface | Composer\Package\RootPackage |
protected Logger,Wikimedia\Composer $logger | ||
return | Wikimedia\Composer\Logger |
protected CompletePackage,Composer\Package $package | ||
return | Composer\Package\CompletePackage |