PHP Class Composer\Satis\Builder\PackagesBuilder

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

Public Methods

Method Description
__construct ( Symfony\Component\Console\Output\OutputInterface $output, string $outputDir, array $config, boolean $skipErrors ) Dedicated Packages Constructor.
dump ( array $packages ) Builds the JSON stuff of the repository.

Private Methods

Method Description
dumpPackageIncludeJson ( array $packages, string $includesUrl, string $hashAlgorithm = 'sha1' ) : array Writes includes JSON Files.
dumpPackagesJson ( array $repo ) Writes the packages.json of the repository.
findReplacements ( array $packages, string $replaced ) : array Find packages replacing the $replaced packages
pruneIncludeDirectories ( ) Remove all files matching the includeUrl pattern next to just created include jsons
writeToFile ( string $path, string $contents ) Write to a file

Method Details

__construct() public method

Dedicated Packages Constructor.
public __construct ( Symfony\Component\Console\Output\OutputInterface $output, string $outputDir, array $config, boolean $skipErrors )
$output Symfony\Component\Console\Output\OutputInterface The output Interface
$outputDir string The directory where to build
$config array The parameters from ./satis.json
$skipErrors boolean Escapes Exceptions if true

dump() public method

Builds the JSON stuff of the repository.
public dump ( array $packages )
$packages array List of packages to dump