1 | <?php |
||
23 | class AdminSettingsController extends Controller { |
||
24 | |||
25 | /** @var IL10N */ |
||
26 | private $l10n; |
||
27 | |||
28 | /** @var AppConfigService */ |
||
29 | private $appConfig; |
||
30 | |||
31 | use Errors; |
||
32 | |||
33 | /** |
||
34 | * Constructor |
||
35 | * |
||
36 | * @param string $appName |
||
37 | * @param IRequest $request |
||
38 | * @param IL10N $l10n |
||
39 | * @param AppConfigService $appConfig |
||
40 | * @param string $userId |
||
41 | */ |
||
42 | public function __construct($appName, IRequest $request, IL10N $l10n, AppConfigService $appConfig, $userId) { |
||
47 | |||
48 | /** |
||
49 | * @NoAdminRequired |
||
50 | * |
||
51 | * @return DataResponse |
||
52 | */ |
||
53 | public function getLanguages() { |
||
58 | |||
59 | /** |
||
60 | * @NoAdminRequired |
||
61 | * |
||
62 | * @return DataResponse |
||
63 | */ |
||
64 | public function evaluateRedisSettings() { |
||
69 | |||
70 | /** |
||
71 | * Sets the languages that are supported by the docker worker instance. |
||
72 | * |
||
73 | * @param string $languages |
||
74 | * @return DataResponse |
||
75 | */ |
||
76 | public function setLanguages($languages) { |
||
86 | |||
87 | /** |
||
88 | * Sets the Redis settings. |
||
89 | * |
||
90 | * @param string $redisHost |
||
91 | * @param string $redisPort |
||
92 | * @param string $redisDb |
||
93 | * @return DataResponse |
||
94 | */ |
||
95 | public function setRedis($redisHost, $redisPort, $redisDb) { |
||
107 | } |