public function beforeContainerCreated() { $this->vars->reload(); if ($this->vars->queryParamOverride) { foreach ($this->vars->queryParamOverride as $key => $value) { $_GET[$key] = $value; } } if ($this->vars->globalsOverride) { foreach ($this->vars->globalsOverride as $key => $value) { $GLOBALS[$key] = $value; } } if ($this->vars->hostOverride) { \Piwik\Url::setHost($this->vars->hostOverride); } if ($this->vars->useXhprof) { \Piwik\Profiler::setupProfilerXHProf($mainRun = false, $setupDuringTracking = true); } \Piwik\Cache\Backend\File::$invalidateOpCacheBeforeRead = true; }