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, extensions.
* @author Andrii Vasyliev <[email protected]>
class System extends Config
{
public function setValue(string $name, $value)
$this->values[$name] = $value;
}
public function setValues(array $values)
$this->values = $values;
return $this;
public function mergeValues(array $values)
$this->values = array_merge($this->values, $values);
protected function writeFile(string $path, array $data)
$this->writePhpFile($path, $data, false);
public function load(array $paths = [])
return $this->setValues($this->loadFile($this->getOutputPath()));
public function build()
$this->values = $this->substituteOutputDirs($this->values);