You are here

public function ContainerBuilder::__sleep in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Core/DependencyInjection/ContainerBuilder.php \Drupal\Core\DependencyInjection\ContainerBuilder::__sleep()

File

lib/Drupal/Core/DependencyInjection/ContainerBuilder.php, line 120
Contains \Drupal\Core\DependencyInjection\ContainerBuilder.

Class

ContainerBuilder
Drupal's dependency injection container builder.

Namespace

Drupal\Core\DependencyInjection

Code

public function __sleep() {
  trigger_error('The container was serialized.', E_USER_ERROR);
  return array_keys(get_object_vars($this));
}