PackageResolver
in package
Tags
Table of Contents
- $downloader : mixed
- $SYMFONY_VERSIONS : mixed
- __construct() : mixed
- parseVersion() : string
- resolve() : array<string|int, mixed>
- resolvePackageName() : string
- throwAlternatives() : mixed
Properties
$downloader
private
mixed
$downloader
$SYMFONY_VERSIONS
private
static mixed
$SYMFONY_VERSIONS
= ['lts', 'previous', 'stable', 'next', 'dev']
Methods
__construct()
public
__construct(Downloader $downloader) : mixed
Parameters
- $downloader : Downloader
Return values
mixed —parseVersion()
public
parseVersion(string $package, string $version, bool $isRequire) : string
Parameters
- $package : string
- $version : string
- $isRequire : bool
Return values
string —resolve()
public
resolve([array<string|int, mixed> $arguments = [] ][, bool $isRequire = false ]) : array<string|int, mixed>
Parameters
- $arguments : array<string|int, mixed> = []
- $isRequire : bool = false
Return values
array<string|int, mixed> —resolvePackageName()
private
resolvePackageName(string $argument, int $position, bool $isRequire) : string
Parameters
- $argument : string
- $position : int
- $isRequire : bool
Return values
string —throwAlternatives()
private
throwAlternatives(string $argument, int $position) : mixed
Parameters
- $argument : string
- $position : int