public function Container::__sleep
public Container::__sleep()
File
- core/lib/Drupal/Core/DependencyInjection/Container.php, line 28
Class
- Container
- Extends the Drupal container to set the service ID on the created object.
Namespace
Drupal\Core\DependencyInjectionCode
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!Container.php/function/Container::__sleep/8.1.x