ObjectSerialization.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Test/ObjectSerialization.php
  2. 8.9.x core/lib/Drupal/Core/Test/ObjectSerialization.php
  3. 10 core/lib/Drupal/Core/Test/ObjectSerialization.php

Namespace

Drupal\Core\Test

File

core/lib/Drupal/Core/Test/ObjectSerialization.php

View source
<?php

namespace Drupal\Core\Test;


/**
 * Object to test that security issues around serialization.
 */
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');
    }

}

Classes

Title Deprecated Summary
ObjectSerialization Object to test that security issues around serialization.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.