Назначение формата
This commit is contained in:
parent
7b2827e96f
commit
d24561c652
1 changed files with 2 additions and 2 deletions
|
|
@ -14,9 +14,9 @@ class Settings extends Collection
|
||||||
protected $file;
|
protected $file;
|
||||||
protected $format = 'php';
|
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;
|
$this->file = $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue