Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
config.php
1<?php
3
9
10final class Config extends Main\Engine\Controller
11{
19 public function defaultAction(): IConfig
20 {
21 try
22 {
23 $current = $this->loadAction();
24 }
25 finally
26 {
27 return $current ?? Facebook\Config::default();
28 }
29 }
30
37 public function loadAction(): IConfig
38 {
39 return Facebook\Config::load();
40 }
41
48 public function saveAction(array $config)
49 {
50 return Facebook\Config::loadFromArray($config)->save();
51 }
52}