Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Container.php

function Container::__sleep

File

core/lib/Drupal/Core/DependencyInjection/Container.php, line 15

Class

Container
Extends the container to prevent serialization.

Namespace

Drupal\Core\DependencyInjection

Code

public function __sleep() : array {
    assert(FALSE, 'The container was serialized.');
    return array_keys(get_object_vars($this));
}
RSS feed
Powered by Drupal