You are here

public function Executable::version in ClamAV 8

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

The version of the ClamAV service.

Return value

string The version number provided by ClamAV.

Overrides ScannerInterface::version

File

src/Scanner/Executable.php, line 79

Class

Executable

Namespace

Drupal\clamav\Scanner

Code

public function version() {
  if (file_exists($this->_executable_path)) {
    return exec(escapeshellcmd($this->_executable_path) . ' -V');
  }
  else {
    return NULL;
  }
}