1 | <?php |
||
23 | class AdminSettingsController extends Controller { |
||
24 | |||
25 | /** @var IL10N */ |
||
26 | private $l10n; |
||
27 | |||
28 | /** @var AppConfigService */ |
||
29 | private $appConfig; |
||
30 | use Errors; |
||
31 | |||
32 | /** |
||
33 | * Constructor |
||
34 | * |
||
35 | * @param string $appName |
||
36 | * @param IRequest $request |
||
37 | * @param IL10N $l10n |
||
38 | * @param AppConfigService $appConfig |
||
39 | * @param string $userId |
||
40 | */ |
||
41 | 9 | public function __construct($appName, IRequest $request, IL10N $l10n, AppConfigService $appConfig, $userId) { |
|
46 | |||
47 | /** |
||
48 | * @NoAdminRequired |
||
49 | * |
||
50 | * @return DataResponse |
||
51 | */ |
||
52 | 1 | public function getLanguages() { |
|
60 | |||
61 | /** |
||
62 | * @NoAdminRequired |
||
63 | * |
||
64 | * @return DataResponse |
||
65 | */ |
||
66 | 1 | public function evaluateRedisSettings() { |
|
74 | |||
75 | /** |
||
76 | * Sets the languages that are supported by the docker worker instance. |
||
77 | * |
||
78 | * @param string $languages |
||
79 | * @return DataResponse |
||
80 | */ |
||
81 | 2 | public function setLanguages($languages) { |
|
93 | |||
94 | /** |
||
95 | * Sets the Redis settings. |
||
96 | * |
||
97 | * @param string $redisHost |
||
98 | * @param string $redisPort |
||
99 | * @param string $redisDb |
||
100 | * @return DataResponse |
||
101 | */ |
||
102 | 5 | public function setRedis($redisHost, $redisPort, $redisDb) { |
|
116 | } |