spacejewel-ipn-communication/source/helpers/ConfigHelper/class.Config.php
2018-06-07 10:56:13 +00:00

26 lines
435 B
PHP

<?php
class Config
{
public $config;
// Load configuration and upload it to the main class elements
public function __construct()
{
$ROOT = $_SERVER['DOCUMENT_ROOT'];
$config = $ROOT . "/source/config.php";
$c = include($config);
$this->config = $c;
}
public function getConfig()
{
return $this->config;
}
}