/** * 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'; }
/** * 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); $this->filename = $this->outputDir . '/packages.json'; $this->includeFileName = isset($config['include-filename']) ? $config['include-filename'] : 'include/all$%hash%.json'; }
/** * 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); $this->filenamePrefix = $this->outputDir . '/include/all'; $this->filename = $this->outputDir . '/packages.json'; }