__construct() public method

Create a new loader instance.
public __construct ( string $filePath, boolean $immutable = false ) : void
$filePath string
$immutable boolean
return void
コード例 #1
0
ファイル: Dotenv.php プロジェクト: mrgrain/autobahn-cli
 /**
  * Dotenv constructor.
  * @param string $filePath
  */
 public function __construct($filePath)
 {
     parent::__construct($filePath);
     if (file_exists($filePath)) {
         $this->load();
     }
 }
コード例 #2
0
ファイル: Loader.php プロジェクト: kraken-php/framework
 /**
  * @param string $filePath
  * @param bool $immutable
  */
 public function __construct($filePath, $immutable = false)
 {
     parent::__construct($filePath, $immutable);
     $this->invoker = $this->createInvoker();
 }