You are here

public function Container::__sleep in Zircon Profile 8

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

File

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

Class

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

Namespace

Drupal\Core\DependencyInjection

Code

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