for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Composer plugin for config assembling
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
* @license BSD-3-Clause
* @copyright Copyright (c) 2016-2018, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\composer\config\configs;
* System class represents system configuration files:
* __files, aliases, packages.
* @author Andrii Vasyliev <[email protected]>
class System extends Config
{
public function setValue(string $name, $value): Config
$this->values[$name] = $value;
return $this;
}
public function setValues(array $values): Config
$this->values = $values;
public function mergeValues(array $values): Config
$this->values = array_merge($this->values, $values);
public function load(array $paths = []): Config
$path = $this->getOutputPath();
if (!file_exists($path)) {
$this->values = array_merge($this->loadFile($path), $this->values);
public function build(): Config
$this->values = $this->substituteOutputDirs($this->values);