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