1 | <?php |
||
20 | class SettingsController extends Controller { |
||
21 | |||
22 | /** @var AppConfig */ |
||
23 | private $settings; |
||
24 | |||
25 | /** @var ScannerFactory */ |
||
26 | private $scannerFactory; |
||
27 | |||
28 | /** @var IL10N */ |
||
29 | private $l10n; |
||
30 | |||
31 | 3 | public function __construct(IRequest $request, AppConfig $appConfig, ScannerFactory $scannerFactory, IL10N $l10n) { |
|
36 | |||
37 | /** |
||
38 | * Print config section |
||
39 | * @return TemplateResponse |
||
40 | */ |
||
41 | public function index() { |
||
45 | |||
46 | /** |
||
47 | * Save Parameters |
||
48 | * |
||
49 | * @param string $avMode - antivirus mode |
||
50 | * @param string $avSocket - path to socket (Socket mode) |
||
51 | * @param string $avHost - antivirus url |
||
52 | * @param int $avPort - port |
||
53 | * @param string $avCmdOptions - extra command line options |
||
54 | * @param string $avPath - path to antivirus executable (Executable mode) |
||
55 | * @param string $avInfectedAction - action performed on infected files |
||
56 | * @param $avStreamMaxLength - reopen socket after bytes |
||
57 | * @param int $avMaxFileSize - file size limit |
||
58 | * @return JSONResponse |
||
59 | */ |
||
60 | 3 | public function save($avMode, $avSocket, $avHost, $avPort, $avCmdOptions, $avPath, $avInfectedAction, $avStreamMaxLength, $avMaxFileSize) { |
|
89 | } |
||
90 |