1 | <?php |
||
24 | class AdminSettingsController extends Controller { |
||
25 | |||
26 | /** @var IL10N */ |
||
27 | private $l10n; |
||
28 | |||
29 | /** @var AppConfigService */ |
||
30 | private $appConfig; |
||
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 | 4 | public function __construct($appName, IRequest $request, IL10N $l10n, AppConfigService $appConfig, $userId) { |
|
47 | |||
48 | /** |
||
49 | * @NoAdminRequired |
||
50 | * |
||
51 | * @return DataResponse |
||
52 | */ |
||
53 | 1 | public function getLanguages() { |
|
61 | |||
62 | /** |
||
63 | * @NoAdminRequired |
||
64 | * |
||
65 | * @return DataResponse |
||
66 | */ |
||
67 | 1 | public function evaluateRedisSettings() { |
|
75 | |||
76 | /** |
||
77 | * Sets the languages that are supported by the docker worker instance. |
||
78 | * |
||
79 | * @param string $languages |
||
80 | * @return DataResponse |
||
81 | */ |
||
82 | 1 | public function setLanguages($languages) { |
|
89 | |||
90 | /** |
||
91 | * Sets the Redis settings. |
||
92 | * |
||
93 | * @param string $redisHost |
||
94 | * @param string $redisPort |
||
95 | * @param string $redisDb |
||
96 | * @param string $redisPassword |
||
97 | * @return DataResponse |
||
98 | */ |
||
99 | 1 | public function setRedis($redisHost, $redisPort, $redisDb, $redisPassword) { |
|
109 | } |