Commit 7db6e6c6 authored by lussoluca's avatar lussoluca Committed by lussoluca

Issue #2887471 by kylesloan2, lussoluca: destruct method missing, 404s appear at bottom of page

parent 915fda9b
......@@ -2,13 +2,14 @@
namespace Drupal\webprofiler\State;
use Drupal\Core\Cache\CacheCollector;
use Drupal\Core\State\StateInterface;
use Drupal\webprofiler\DataCollector\StateDataCollector;
/**
* Class StateWrapper.
*/
class StateWrapper implements StateInterface {
class StateWrapper extends CacheCollector implements StateInterface {
/**
* The system state.
......@@ -92,6 +93,20 @@ class StateWrapper implements StateInterface {
$this->state->resetCache();
}
/**
* {@inheritdoc}
*/
protected function resolveCacheMiss($key) {
return $this->state->resolveCacheMiss($key);
}
/**
* {@inheritdoc}
*/
public function destruct() {
$this->updateCache();
}
/**
* Passes through all non-tracked calls onto the decorated object.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment