You are here

public function DaemonTCPIP::__construct in ClamAV 8

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

Constructor.

Parameters

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

Overrides ScannerInterface::__construct

File

src/Scanner/DaemonTCPIP.php, line 19

Class

DaemonTCPIP

Namespace

Drupal\clamav\Scanner

Code

public function __construct(Config $config) {
  $this->_hostname = $config
    ->get('mode_daemon_tcpip.hostname');
  $this->_port = $config
    ->get('mode_daemon_tcpip.port');
}