Overrides DestructableInterface::destruct
public function destruct() { // Rebuild routes only once at the end of the request lifecycle to not // trigger multiple rebuilds and also make the page more responsive for the // user. $this->rebuildIfNeeded(); }