Replace the DOCUMENT_ROOT and PROJECT_ROOT variables

Use the __DIR__ constant and dirname as needed
This commit is contained in:
FusionPBX
2025-12-08 14:12:19 -07:00
committed by GitHub
parent df90513f86
commit 6b063f2c28
84 changed files with 217 additions and 210 deletions

View File

@@ -19,21 +19,29 @@
* @param string $config_file Configuration file currently in use
* @param string $config_path_and_filename Full path and configuration file currently in use
*
* @internal the @param statements are used because they match the magic __get function that allows those to be
* accessed publicly
* @internal the @param statements are used because they match the magic __get function that allows those to be accessed publicly
*/
final class config {
// Full path and filename of config.conf
/**
* Configuration object used to hold a single instance
*
* @var array
* @var config
*/
public static $config = null;
// The internal array that holds the configuration in the config.conf file
/**
* The full path and file name for the config file.
*
* @var string
*/
private $file;
/**
* The array of settings contained in the config file.
*
* @var array
*/
private $configuration;
/**