src/Mouf/MoufConfigManager.php
public function getMergedConstants() {
		$constantsInConfig = $this->getDefinedConstants();
		
		$finalArr = $this->constantsDef;
		
		foreach ($finalArr as $name => $constantDef) {
			if (isset($constantsInConfig[$name])) {
				$finalArr[$name]["value"] = $constantsInConfig[$name];
				unset($constantsInConfig[$name]);
			} else {
				$finalArr[$name]["missinginconfigphp"] = true;
			}
			$finalArr[$name]["defined"] = true;
		}
		
		// Now, let's add the defined constant that have no definition in MoufComponents
		foreach ($constantsInConfig as $name=>$value) {
			$finalArr[$name] = array("value"=>$value, "defined"=>false);
		}
		return $finalArr;
	}
public function getMergedConstants() {
		$constantsInConfig = $this->getDefinedConstants();
		
		$finalArr = $this->constantsDef;
		
		foreach ($finalArr as $name => $constantDef) {
			if (isset($constantsInConfig[$name])) {
				$finalArr[$name]["value"] = $constantsInConfig[$name];
				unset($constantsInConfig[$name]);
			} else {
				$finalArr[$name]["missinginconfigphp"] = true;
			}
			$finalArr[$name]["defined"] = true;
		}
		
		// Now, let's add the defined constant that have no definition in MoufComponents
		foreach ($constantsInConfig as $name=>$value) {
			$finalArr[$name] = array("value"=>$value, "defined"=>false);
		}
		return $finalArr;
	}
public function getMergedConstants ( ) { $ constantsInConfig = $ this -> getDefinedConstants ( ) ; $ finalArr = $ this -> constantsDef ; foreach ( $ finalArr as $ name => $ constantDef ) { if ( isset ( $ constantsInConfig [ $ name ] ) ) { $ finalArr [ $ name ] [ "value" ] = $ constantsInConfig [ $ name ] ; unset ( $ constantsInConfig [ $ name ] ) ; } else { $ finalArr [ $ name ] [ "missinginconfigphp" ] = true ; } $ finalArr [ $ name ] [ "defined" ] = true ; } // Now, let's add the defined constant that have no definition in MoufComponents
 foreach ( $ constantsInConfig as $ name => $ value ) { $ finalArr [ $ name ] = array ( "value" => $ value , "defined" => false ) ; } return $ finalArr ; }
This function returns an array of all constants, with there attributes.
It merges the constants definitions defined in MoufComponents and the constants defined in config.php.

The returned values are in this format:
$array["constantName"] = array("defaultValue"=>"", "type"=>"string|int|float|bool", "comment"=>"some comment", "value"=>"", "defined"=>true|false, "missinginconfigphp"=>true|notdefined, , "fetchFromEnv"=>true|false);

return array
This function returns an array of all constants with there attributes . It merges the constants definitions defined in MoufComponents and the constants defined in config . php .