You are here

protected function SocketHandler::fwrite in Lagoon Logs 8

Wrapper to allow mocking

1 call to SocketHandler::fwrite()
SocketHandler::writeToSocket in src/Logger/SocketHandler.php

File

src/Logger/SocketHandler.php, line 264

Class

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

Namespace

Drupal\lagoon_logs\Logger

Code

protected function fwrite($data) {
  return @fwrite($this->resource, $data);
}