\Composer\Package\LoaderArrayLoader

Summary

Methods
Properties
Constants
__construct()
load()
parseLinks()
getBranchAlias()
No public properties found
No constants found
No protected methods found
$versionParser
$loadOptions
N/A
No private methods found
No private properties found
N/A

Properties

$versionParser

$versionParser : 

Type

$loadOptions

$loadOptions : 

Type

Methods

__construct()

__construct(\Composer\Semver\VersionParser  $parser = null,   $loadOptions = false) 

Parameters

\Composer\Semver\VersionParser $parser
$loadOptions

load()

load(array  $config, string  $class = 'Composer\Package\CompletePackage') : \Composer\Package\PackageInterface

Converts a package from an array to a real instance

Parameters

array $config
string $class

Package class to use

Returns

\Composer\Package\PackageInterface

parseLinks()

parseLinks(string  $source, string  $sourceVersion, string  $description, array  $links) : array<mixed,\Composer\Package\Link>

Parameters

string $source

source package name

string $sourceVersion

source package version (pretty version ideally)

string $description

link description (e.g. requires, replaces, ..)

array $links

array of package name => constraint mappings

Returns

array<mixed,\Composer\Package\Link>

getBranchAlias()

getBranchAlias(array  $config) : string|null

Retrieves a branch alias (dev-master => 1.0.x-dev for example) if it exists

Parameters

array $config

the entire package config

Returns

string|null —

normalized version of the branch alias or null if there is none