Documentation

Resolver
in package

Horde\Components\Component\Resolver:: resolves component names and dependencies into component representations.

Copyright 2010-2020 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
category

Horde

author

Gunnar Wrobel wrobel@pardus.de

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

$_factory  : Factory
$_remotes  : array<string|int, mixed>|null
The list of remotes already generated.
$_root  : Root
__construct()  : mixed
Constructor.
_identifyMatchingLocalPackage()  : string
Identify a dependency that is available via a downloaded *.tgz archive.
resolveDependency()  : Component|bool
Try to resolve a dependency into a component.
resolveName()  : Component|bool
Try to resolve the given name and channel into a component.
_getAttempts()  : array<string|int, mixed>
Return the order of resolve attempts.
_getRemote()  : Horde_Pear_Remote
Get a remote PEAR server handler for a specific channel.

Properties

$_remotes

The list of remotes already generated.

private array<string|int, mixed>|null $_remotes = null

Methods

__construct()

Constructor.

public __construct(Root $_root, Factory $_factory) : mixed
Parameters
$_root : Root

The repository root.

$_factory : Factory

Helper factory.

Return values
mixed

_identifyMatchingLocalPackage()

Identify a dependency that is available via a downloaded *.tgz archive.

public _identifyMatchingLocalPackage(string $name, string $channel, array<string|int, mixed> $options) : string
Parameters
$name : string

The component name.

$channel : string

The component channel.

$options : array<string|int, mixed>

Resolve options.

Return values
string

A path to the local archive if it was found.

resolveDependency()

Try to resolve a dependency into a component.

public resolveDependency(Dependency $dependency, array<string|int, mixed> $options) : Component|bool
Parameters
$dependency : Dependency

The dependency.

$options : array<string|int, mixed>

Additional options.

 - allow_remote: May the resolver try to resolve to a remote channel?
 - order:        Order of stability preference.
Return values
Component|bool

The component if the name could be resolved.

resolveName()

Try to resolve the given name and channel into a component.

public resolveName(string $name, string $channel, array<string|int, mixed> $options) : Component|bool
Parameters
$name : string

The name of the component.

$channel : string

The channel origin of the component.

$options : array<string|int, mixed>

Additional options.

Return values
Component|bool

The component if the name could be resolved.

_getAttempts()

Return the order of resolve attempts.

private _getAttempts(array<string|int, mixed> $options) : array<string|int, mixed>
Parameters
$options : array<string|int, mixed>

Resolve options.

Return values
array<string|int, mixed>

The list of attempts

_getRemote()

Get a remote PEAR server handler for a specific channel.

private _getRemote(string $channel) : Horde_Pear_Remote
Parameters
$channel : string

The channel name.

Return values
Horde_Pear_Remote

The remote handler.

Search results