class ObjectSerialization
Same name in other branches
- 9 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization
- 10 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization
- 11.x 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
1 string reference to 'ObjectSerialization'
- ConfigSingleImportExportTest::testImport in core/
modules/ config/ tests/ src/ Functional/ ConfigSingleImportExportTest.php - Tests importing a single configuration file.
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 deconstructor.
*/
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 deconstructor. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.