diff --git a/src/Settings.php b/src/Settings.php index 661cbb2..5ba0767 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -14,9 +14,9 @@ class Settings extends Collection protected $file; protected $format = 'php'; - public function __construct ($file = null) + public function __construct ($file = null, $format = false) { - $this->format = pathinfo($file, PATHINFO_EXTENSION); + $this->format = $format ? $format : pathinfo($file, PATHINFO_EXTENSION); $this->file = $file; }