Обертка для file_get_contents

This commit is contained in:
CORP\phedor 2018-02-14 11:03:43 +03:00
parent bfd53ecc09
commit 0d92ebad86
5 changed files with 17 additions and 6 deletions

View file

@ -32,7 +32,7 @@ class Settings extends Collection
// Не include_once т.к читать настройки можно несколько раз
$settings = array();
if ($this->format == 'json') {
$settings = json_decode(file_get_contents($this->file), true);
$settings = json_decode(File::getContents($this->file), true);
} else {
include ($this->file);
}