load() public method

Load .env file in given directory.
public load ( ) : array
return array
コード例 #1
0
ファイル: EcwebServers.php プロジェクト: hoangth/ecwebserver
 /**
  * Load `.env` file in given directory.
  *
  * @return array
  */
 public function overload()
 {
     $this->loader = new Loader($this->filePath, $immutable = false);
     return $this->loader->load();
 }
コード例 #2
0
ファイル: Dotenv.php プロジェクト: levanigongadze/Labweb
 /**
  * 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();
 }