public function Connection::serialize in Service Container 7
Same name and namespace in other branches
- 7.2 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
Namespace
Drupal\Core\DatabaseCode
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));
}