You are here

public function Container::__sleep in Service Container 7

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

File

lib/Drupal/Core/DependencyInjection/Container.php, line 32
Contains \Drupal\Core\DependencyInjection\Container.

Class

Container
Extends the symfony container to set the service ID on the created object.

Namespace

Drupal\Core\DependencyInjection

Code

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