1 | <?php |
||
20 | class SettingsController extends Controller { |
||
21 | |||
22 | /** |
||
23 | * @var AppConfig |
||
24 | */ |
||
25 | private $settings; |
||
26 | |||
27 | /** |
||
28 | * @var ScannerFactory |
||
29 | */ |
||
30 | private $scannerFactory; |
||
31 | |||
32 | /** |
||
33 | * @var IL10N |
||
34 | */ |
||
35 | private $l10n; |
||
36 | |||
37 | /** |
||
38 | * SettingsController constructor. |
||
39 | * |
||
40 | * @param IRequest $request |
||
41 | * @param AppConfig $appConfig |
||
42 | * @param ScannerFactory $scannerFactory |
||
43 | * @param IL10N $l10n |
||
44 | */ |
||
45 | 3 | public function __construct(IRequest $request, |
|
52 | |||
53 | /** |
||
54 | * Print config section |
||
55 | * |
||
56 | * @return TemplateResponse |
||
57 | */ |
||
58 | public function index() { |
||
62 | |||
63 | /** |
||
64 | * Save Parameters |
||
65 | * |
||
66 | * @param string $avMode - antivirus mode |
||
67 | * @param string $avSocket - path to socket (Socket mode) |
||
68 | * @param string $avHost - antivirus url |
||
69 | * @param int $avPort - port |
||
70 | * @param string $avCmdOptions - extra command line options |
||
71 | * @param string $avPath - path to antivirus executable (Executable mode) |
||
72 | * @param string $avInfectedAction - action performed on infected files |
||
73 | * @param int $avStreamMaxLength - reopen socket after bytes |
||
74 | * @param int $avMaxFileSize - file size limit |
||
75 | * |
||
76 | * @return JSONResponse |
||
77 | */ |
||
78 | 3 | public function save($avMode, $avSocket, $avHost, $avPort, |
|
111 | } |
||
112 |