forked from codeigniter4/settings
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettings.php
More file actions
51 lines (44 loc) · 1.13 KB
/
Settings.php
File metadata and controls
51 lines (44 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
declare(strict_types=1);
namespace CodeIgniter\Settings\Config;
use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Settings\Handlers\ArrayHandler;
use CodeIgniter\Settings\Handlers\DatabaseHandler;
use CodeIgniter\Settings\Handlers\FileHandler;
class Settings extends BaseConfig
{
/**
* The available handlers. The alias must
* match a public class var here with the
* settings array containing 'class'.
*
* @var list<string>
*/
public $handlers = ['database'];
/**
* Array handler settings.
*/
public $array = [
'class' => ArrayHandler::class,
'writeable' => true,
];
/**
* Database handler settings.
*/
public $database = [
'class' => DatabaseHandler::class,
'table' => 'settings',
'group' => null,
'writeable' => true,
'deferWrites' => false,
];
/**
* File handler settings.
*/
public $file = [
'class' => FileHandler::class,
'path' => WRITEPATH . 'settings',
'writeable' => true,
'deferWrites' => false,
];
}