protected function initGlobals() { $globals = array(); foreach ($this->extensions as $extension) { $globals = array_merge($globals, $extension ->getGlobals()); } return array_merge($globals, $this->staging ->getGlobals()); }