1 | <?php |
||
10 | class Modules extends \SimpleSAML\Module\monitor\TestSuiteFactory |
||
11 | { |
||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private $requiredApacheModules = array(); |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | // Important!! Modules-names are handled case-sensitive!! |
||
21 | private $storeApacheDependencies = array(); |
||
|
|||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $moduleApacheDependencies = array( |
||
27 | 'negotiateext' => 'mod_auth_kerb|mod_auth_gssapi' |
||
28 | ); |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | private $requiredPhpModules = array(); |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | private $storePhpDependencies = array( |
||
39 | 'memcache' => 'memcached|memcache', |
||
40 | 'phpsession' => 'session', |
||
41 | 'redis' => 'redis', |
||
42 | 'redissentinel' => 'redis', |
||
43 | 'riak:Store' => 'riak', |
||
44 | 'sql' => 'PDO' |
||
45 | ); |
||
46 | |||
47 | /** |
||
48 | * @var array |
||
49 | */ |
||
50 | private $modulePhpDependencies = array( |
||
51 | 'authfacebook' => array('curl', 'json'), |
||
52 | 'authYubiKey' => 'curl', |
||
53 | // TODO: consent only requires pdo when database backend is used.. Should probably add this to required-list when processing metadata |
||
54 | // 'consent' => 'PDO', |
||
55 | 'consentAdmin' => 'PDO', |
||
56 | 'ldap' => 'ldap', |
||
57 | 'memcacheMonitor' => 'memcached|memcache', |
||
58 | 'negotiate' => 'krb5', |
||
59 | 'radius' => 'radius', |
||
60 | 'riak' => 'riak', |
||
61 | 'sqlauth' => 'PDO' |
||
62 | ); |
||
63 | |||
64 | /** |
||
65 | * @param TestData|null $testData |
||
66 | * |
||
67 | * @return void |
||
68 | */ |
||
69 | protected function initialize($testData = null) |
||
75 | |||
76 | /** |
||
77 | * @return void |
||
78 | */ |
||
79 | private function addRequiredPhpModule($module) |
||
85 | |||
86 | |||
87 | /** |
||
88 | * @return void |
||
89 | */ |
||
90 | private function setRequiredPhpModules() |
||
112 | |||
113 | /** |
||
114 | * @return void |
||
115 | */ |
||
116 | private function setRequiredSspModules() |
||
136 | |||
137 | /** |
||
138 | * @return array |
||
139 | */ |
||
140 | public function getAvailableApacheModules() |
||
145 | |||
146 | /** |
||
147 | * @return array |
||
148 | */ |
||
149 | public function getAvailablePhpModules() |
||
154 | |||
155 | /** |
||
156 | * @return array |
||
157 | */ |
||
158 | private function getRequiredApacheModules() |
||
162 | |||
163 | |||
164 | /** |
||
165 | * @return array |
||
166 | */ |
||
167 | private function getRequiredPhpModules() |
||
171 | |||
172 | |||
173 | /** |
||
174 | * @return array<string,array> |
||
175 | */ |
||
176 | private function getModuleDependencies() |
||
180 | |||
181 | /** |
||
182 | * @return void |
||
183 | */ |
||
184 | protected function invokeTestSuite() |
||
215 | |||
216 | /** |
||
217 | * @param array $output |
||
218 | * |
||
219 | * @return void |
||
220 | */ |
||
221 | protected function processTestResults($output) |
||
240 | } |
||
241 |
This check marks private properties in classes that are never used. Those properties can be removed.