W3cubDocs

/Drupal 8

public function ContainerBuilder::__sleep

public ContainerBuilder::__sleep()

File

core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php, line 254

Class

ContainerBuilder
Drupal's dependency injection container builder.

Namespace

Drupal\Core\DependencyInjection

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!DependencyInjection!ContainerBuilder.php/function/ContainerBuilder::__sleep/8.1.x