As the sun rises and the forest mist clears, and the clouds return and the caves darken, these changes of light and shadow are the morning and evening in the mountains. Wildflowers bloom with their subtle fragrance, fine trees flourish with their dense shade, the wind and frost are pure and clean, and the water recedes to reveal the rocks—these are the four seasons in the mountains. Going out in the morning and returning in the evening, the scenery of the four seasons is different, and the joy is endless.至于负者歌于途,行者休于树,前者呼,后者应,伛偻提携,往来而不绝者,滁人游也。临溪而渔,溪深而鱼肥,酿泉为酒,泉香而酒洌,山肴野蔌,杂然而前陈者,太守宴也。宴酣之乐,非丝非竹,射者中,弈者胜,觥筹交错,起坐而喧哗者,众宾欢也。苍颜白发,颓然乎其间者,太守醉也。
<?php
namespace Yoast\WP\SEO\WordPress;
use wpdb;
use WPSEO_Addon_Manager;
use WPSEO_Admin_Asset_Manager;
use WPSEO_Replace_Vars;
use WPSEO_Shortlinker;
use WPSEO_Utils;
/**
* Wrapper class for WordPress globals.
*
* This consists of factory functions to inject WP globals into the dependency container.
*/
class Wrapper {
/**
* Wrapper method for returning the wpdb object for use in dependency injection.
*
* @return wpdb The wpdb global.
*/
public static function get_wpdb() {
global $wpdb;
return $wpdb;
}
/**
* Factory function for replace vars helper.
*
* @return WPSEO_Replace_Vars The replace vars helper.
*/
public static function get_replace_vars() {
return new WPSEO_Replace_Vars();
}
/**
* Factory function for the admin asset manager.
*
* @return WPSEO_Admin_Asset_Manager The admin asset manager.
*/
public static function get_admin_asset_manager() {
return new WPSEO_Admin_Asset_Manager();
}
/**
* Factory function for the addon manager.
*
* @return WPSEO_Addon_Manager The addon manager.
*/
public static function get_addon_manager() {
return new WPSEO_Addon_Manager();
}
/**
* Factory function for the shortlinker.
*
* @return WPSEO_Shortlinker
*/
public static function get_shortlinker() {
return new WPSEO_Shortlinker();
}
/**
* Factory function for the utils class.
*
* @return WPSEO_Utils
*/
public static function get_utils() {
return new WPSEO_Utils();
}
}