You are here

public function Connection::serialize in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::serialize()

File

lib/Drupal/Core/Database/Connection.php, line 211
Contains \Drupal\Core\Database\Connection.

Class

Connection

Namespace

Drupal\Core\Database

Code

public function serialize() {
  throw new \Exception('Serialize is not implemented yet.');
  $connection = clone $this;

  // Don't serialize the PDO connection and other lazy-instantiated members.
  unset($connection->connection, $connection->schema, $connection->driverClasses);
  return serialize(get_object_vars($connection));
}