diff --git a/core/lib/Drupal/Core/Routing/RouteBuilderIndicator.php b/core/lib/Drupal/Core/Routing/RouteBuilderIndicator.php index 3496ddd..da99bf2 100644 --- a/core/lib/Drupal/Core/Routing/RouteBuilderIndicator.php +++ b/core/lib/Drupal/Core/Routing/RouteBuilderIndicator.php @@ -34,13 +34,6 @@ public function __construct(StateInterface $state) { /** * {@inheritdoc} */ - public function resetCache() { - $this->state->resetCache(); - } - - /** - * {@inheritdoc} - */ public function setRebuildNeeded() { $this->state->set(static::REBUILD_NEEDED, TRUE); } @@ -65,7 +58,7 @@ public function setRebuildDone() { public function isRebuildStillNeeded() { // To absolutely ensure that the router rebuild is required, reset the cache // in case they were set by another process. - $this->resetCache(); + $this->state->resetCache(); return $this->isRebuildNeeded(); } diff --git a/core/lib/Drupal/Core/Routing/RouteBuilderIndicatorInterface.php b/core/lib/Drupal/Core/Routing/RouteBuilderIndicatorInterface.php index 7838acb..fcd8495 100644 --- a/core/lib/Drupal/Core/Routing/RouteBuilderIndicatorInterface.php +++ b/core/lib/Drupal/Core/Routing/RouteBuilderIndicatorInterface.php @@ -15,11 +15,6 @@ const REBUILD_NEEDED = 'router_rebuild_needed'; /** - * Reset the router builder indicator cache. - */ - public function resetCache(); - - /** * Sets the router to be rebuilt next time the kernel is terminated. * * @see \Drupal\Core\EventSubscriber\RouterRebuildSubscriber::onKernelTerminate()