__construct() 공개 메소드

Create a new loader instance.
public __construct ( string $filePath, boolean $immutable = false ) : void
$filePath string
$immutable boolean
리턴 void
예제 #1
0
 /**
  * Dotenv constructor.
  * @param string $filePath
  */
 public function __construct($filePath)
 {
     parent::__construct($filePath);
     if (file_exists($filePath)) {
         $this->load();
     }
 }
예제 #2
0
 /**
  * @param string $filePath
  * @param bool $immutable
  */
 public function __construct($filePath, $immutable = false)
 {
     parent::__construct($filePath, $immutable);
     $this->invoker = $this->createInvoker();
 }