You are here

public function SocketHandler::close in Lagoon Logs 8

We will not close a PersistentSocket instance so it can be reused in other requests.

File

src/Logger/SocketHandler.php, line 87

Class

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

Namespace

Drupal\lagoon_logs\Logger

Code

public function close() {
  if (!$this
    ->isPersistent()) {
    $this
      ->closeSocket();
  }
}