class ObjectSerialization
Same name in other branches
- 9 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization
- 8.9.x core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization
- 10 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization
Object to test that security issues around serialization.
Hierarchy
- class \Drupal\Core\Test\ObjectSerialization
Expanded class hierarchy of ObjectSerialization
File
-
core/
lib/ Drupal/ Core/ Test/ ObjectSerialization.php, line 8
Namespace
Drupal\Core\TestView source
class ObjectSerialization {
/**
* ObjectSerialization constructor.
*/
public function __construct() {
throw new \Exception('This object should never be constructed');
}
/**
* ObjectSerialization destructor.
*/
public function __destruct() {
throw new \Exception('This object should never be destructed');
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ObjectSerialization::__construct | public | function | ObjectSerialization constructor. |
ObjectSerialization::__destruct | public | function | ObjectSerialization destructor. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.