/** * 预加载组件 */ private function _preInit() { $pre = $this->setPreObject(); foreach ($pre as $n => $o) { \H2O::setContainer($n, new $o()); } }