You are here

public function ObjectSerialization::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization::__construct()
  2. 9 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization::__construct()

ObjectSerialization constructor.

File

core/lib/Drupal/Core/Test/ObjectSerialization.php, line 13

Class

ObjectSerialization
Object to test that security issues around serialization.

Namespace

Drupal\Core\Test

Code

public function __construct() {
  throw new \Exception('This object should never be constructed');
}