Container.php
Same filename in this branch
Namespace
Drupal\Core\DependencyInjectionFile
-
core/
lib/ Drupal/ Core/ DependencyInjection/ Container.php
View source
<?php
namespace Drupal\Core\DependencyInjection;
use Drupal\Component\DependencyInjection\Container as DrupalContainer;
/**
* Extends the container to prevent serialization.
*/
class Container extends DrupalContainer {
/**
* {@inheritdoc}
*/
public function __sleep() : array {
assert(FALSE, 'The container was serialized.');
return array_keys(get_object_vars($this));
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
Container | Extends the container to prevent serialization. |