PHP Class Composer\Satis\Builder\WebBuilder

Author: James Hautot ([email protected])
Inheritance: extends Builder, implements Composer\Satis\Builder\BuilderInterface
Exibir arquivo Open project: composer/satis Class Usage Examples

Public Methods

Method Description
dump ( array $packages )
setRootPackage ( Composer\Package\RootPackageInterface $rootPackage ) Defines the root package of the repository.
setTwigEnvironment ( Twig_Environment $twig ) Sets the twig environment.

Private Methods

Method Description
getDescSortedVersions ( array $packages ) : Composer\Package\PackageInterface[] Sorts by version the list of packages.
getHighestVersion ( array $packages ) : Composer\Package\PackageInterface Gets the highest version of packages.
getMappedPackageList ( array $packages ) : array Gets a list of packages grouped by name with a list of versions.
getTwigEnvironment ( ) : Twig_Environment Gets the twig environment.
getTwigTemplate ( ) : string Gets the twig template name.
groupPackagesByName ( array $packages ) : array Gets a list of packages grouped by name.
setDependencies ( array $packages ) Defines the required packages.

Method Details

dump() public method

public dump ( array $packages )
$packages array

setRootPackage() public method

Defines the root package of the repository.
public setRootPackage ( Composer\Package\RootPackageInterface $rootPackage )
$rootPackage Composer\Package\RootPackageInterface The root package

setTwigEnvironment() public method

Sets the twig environment.
public setTwigEnvironment ( Twig_Environment $twig )
$twig Twig_Environment