1 | <?php |
||
35 | class ExtensionConfiguration |
||
36 | { |
||
37 | /** |
||
38 | * Extension Configuration |
||
39 | * |
||
40 | * @var array |
||
41 | */ |
||
42 | protected $configuration = []; |
||
43 | |||
44 | /** |
||
45 | * ExtensionConfiguration constructor. |
||
46 | * @param array $configurationToUse |
||
47 | */ |
||
48 | 148 | public function __construct($configurationToUse = []) |
|
56 | |||
57 | /** |
||
58 | * Get configuration for useConfigurationFromClosestTemplate |
||
59 | * |
||
60 | * @return bool |
||
61 | */ |
||
62 | 65 | public function getIsUseConfigurationFromClosestTemplateEnabled() |
|
66 | |||
67 | /** |
||
68 | * Get configuration for useConfigurationTrackRecordsOutsideSiteroot |
||
69 | * |
||
70 | * @return bool |
||
71 | */ |
||
72 | 51 | public function getIsUseConfigurationTrackRecordsOutsideSiteroot() |
|
76 | |||
77 | /** |
||
78 | * Get configuration for allowSelfSignedCertificates |
||
79 | * |
||
80 | * @return bool |
||
81 | */ |
||
82 | 2 | public function getIsSelfSignedCertificatesEnabled() |
|
86 | |||
87 | /** |
||
88 | * Get configuration for useConfigurationMonitorTables |
||
89 | * |
||
90 | * @return array of tableName => true |
||
91 | */ |
||
92 | 34 | public function getIsUseConfigurationMonitorTables() |
|
108 | |||
109 | /** |
||
110 | * @param string $key |
||
111 | * @param mixed $defaultValue |
||
112 | * @return mixed |
||
113 | */ |
||
114 | 72 | protected function getConfigurationOrDefaultValue($key, $defaultValue) |
|
118 | } |
||
119 |