ManagedStorage example

public function getStorage() {
    // We return a new storage every time to make sure the managed storage     // only calls this once and retains the configuration by itself.     return new MemoryStorage();
  }

  /** * {@inheritdoc} */
  protected function setUp(): void {
    parent::setUp();
    $this->storage = new ManagedStorage($this);
  }

  /** * {@inheritdoc} */
  protected function read($name) {
    return $this->storage->read($name);
  }

  /** * {@inheritdoc} */
Home | Imprint | This part of the site doesn't use cookies.