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