1: <?php
2:
3: namespace Charcoal\App\Config;
4:
5: // Module `charcoal-config` dependencies
6: use Charcoal\Config\AbstractConfig;
7:
8: /**
9: *
10: */
11: class FilesystemConfig extends AbstractConfig
12: {
13:
14: /**
15: * @var array
16: */
17: protected $connections = [];
18:
19: /**
20: * @var string
21: */
22: public $defaultConnection;
23:
24: /**
25: * @return array
26: */
27: public function defaultConnections()
28: {
29: return [
30: 'public' => [
31: 'type' => 'local',
32: 'path' => './',
33: 'label' => 'Public'
34: ],
35: 'private' => [
36: 'public' => false,
37: 'type' => 'local',
38: 'path' => '../',
39: 'label' => 'Private'
40: ]
41: ];
42: }
43:
44: /**
45: * Ensure connections always return the default connections.
46: *
47: * @return array
48: */
49: public function connections()
50: {
51: return array_merge($this->defaultConnections(), $this->connections);
52: }
53: }
54: