You are here

protected function SocketHandler::pfsockopen in Lagoon Logs 8

Wrapper to allow mocking

1 call to SocketHandler::pfsockopen()
SocketHandler::createSocketResource in src/Logger/SocketHandler.php

File

src/Logger/SocketHandler.php, line 227

Class

SocketHandler
Stores to any socket - uses fsockopen() or pfsockopen().

Namespace

Drupal\lagoon_logs\Logger

Code

protected function pfsockopen() {
  return @pfsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout);
}