/** * Constructor * * Call the parent class and pass it the * root directory as the argument. */ public function __construct() { parent::__construct($_SERVER['DOCUMENT_ROOT']); }
public function __construct() { $this->dotEnv = parent::__construct($_SERVER['DOCUMENT_ROOT']); }
/** * create an instance of the class */ public function __construct() { parent::__construct(__DIR__ . '/../..'); }
public function __construct($path, $file = '.env') { parent::__construct($path, $file); $this->loader = new Loader($this->filePath, $immutable = true); }