Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website] / web / core / lib / Drupal / Core / Test / ObjectSerialization.php
1 <?php
2
3 namespace Drupal\Core\Test;
4
5 /**
6  * Object to test that security issues around serialization.
7  */
8 class ObjectSerialization {
9
10   /**
11    * ObjectSerialization constructor.
12    */
13   public function __construct() {
14     throw new \Exception('This object should never be constructed');
15   }
16
17   /**
18    * ObjectSerialization deconstructor.
19    */
20   public function __destruct() {
21     throw new \Exception('This object should never be destructed');
22   }
23
24 }