load() public method

Load .env file in given directory.
public load ( ) : array
return array
Esempio n. 1
0
 /**
  * Load `.env` file in given directory.
  *
  * @return array
  */
 public function overload()
 {
     $this->loader = new Loader($this->filePath, $immutable = false);
     return $this->loader->load();
 }
Esempio n. 2
0
 /**
  * Actually load the data.
  *
  * @param bool $overload
  *
  * @return array
  */
 protected function loadData($overload = false)
 {
     $this->loader = new Loader($this->filePath, !$overload);
     return $this->loader->load();
 }