Composer\Satis\Builder\Builder::__construct PHP Method

__construct() public method

Base 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 Skips Exceptions if true
    public function __construct(OutputInterface $output, $outputDir, $config, $skipErrors)
    {
        $this->output = $output;
        $this->outputDir = $outputDir;
        $this->config = $config;
        $this->skipErrors = (bool) $skipErrors;
    }

Usage Example

Example #1
0
 /**
  * Dedicated Packages Constructor.
  *
  * @param OutputInterface $output The output Interface
  * @param string $outputDir The directory where to build
  * @param array $config The parameters from ./satis.json
  * @param bool $skipErrors Escapes Exceptions if true
  */
 public function __construct(OutputInterface $output, $outputDir, $config, $skipErrors)
 {
     parent::__construct($output, $outputDir, $config, $skipErrors);
     if (isset($config['archive']['directory'])) {
         $this->filenamePrefix = $this->outputDir . '/' . $config['archive']['directory'];
         $url = isset($config['archive']['prefix-url']) ? $config['archive']['prefix-url'] : $config['homepage'] . '/' . $config['archive']['directory'];
         $this->archiveEndpoint = parse_url($url, PHP_URL_PATH);
     } else {
         $this->filenamePrefix = $this->outputDir . '/includes/all';
     }
     $this->filename = $this->outputDir . '/packages.json';
 }
All Usage Examples Of Composer\Satis\Builder\Builder::__construct