PHP Class Bolt\Composer\Action\AbstractDependencyAction

Author: Gawain Lynch ([email protected])
Inheritance: extends Bolt\Composer\Action\BaseAction
Show file Open project: bolt/bolt

Protected Properties

Property Type Description
$inverted Whether to invert matching process (why-not vs why behaviour)
$recursive boolean

Public Methods

Method Description
execute ( string $packageName, string $textConstraint = '*', boolean $onlyLocal = true ) : Bolt\Composer\Package\Dependency[] | null Execute.

Private Methods

Method Description
getDependencies ( array $results ) : array Assembles and prints a bottom-up table of the dependencies.
getNeedles ( string $packageName, Composer\Package\PackageInterface[] $packages, boolean $inverted ) : Composer\Package\Link[] Return a needle stack of Links depending on why/why-not.
getRequiredPool ( string $packageName, string $textConstraint, boolean $onlyLocal ) : Composer\DependencyResolver\Pool If the version we ask for is not installed then we need to locate it in remote repos and add it.

Method Details

execute() public method

Execute.
public execute ( string $packageName, string $textConstraint = '*', boolean $onlyLocal = true ) : Bolt\Composer\Package\Dependency[] | null
$packageName string Package to inspect.
$textConstraint string Optional version constraint
$onlyLocal boolean
return Bolt\Composer\Package\Dependency[] | null

Property Details

$inverted protected property

Whether to invert matching process (why-not vs why behaviour)
protected $inverted

$recursive protected property

protected bool $recursive
return boolean