You are here

public function Executable::__construct in ClamAV 8

Same name and namespace in other branches
  1. 2.x src/Scanner/Executable.php \Drupal\clamav\Scanner\Executable::__construct()

Constructor.

Parameters

Drupal\clamav\Config $config: Configuration to use.

Overrides ScannerInterface::__construct

File

src/Scanner/Executable.php, line 19

Class

Executable

Namespace

Drupal\clamav\Scanner

Code

public function __construct(Config $config) {
  $this->_executable_path = $config
    ->get('mode_executable.executable_path');
  $this->_executable_parameters = $config
    ->get('mode_executable.executable_parameters');
}