/** * Use this static method to invoke a new server instance. * Note that constructor is private. * * @param * Oops_Config Config for the new server instance * @return Oops_Server */ public static function newInstance($config = null) { $new = new Oops_Server(); if (count(self::$_stack)) { $last = end(self::$_stack); $new->_config = $last->_config; } else { $new->_config = new Oops_Config_Default(); } $new->configure($config); array_push(self::$_stack, $new); return $new; }