| Server IP : 82.208.35.60 / Your IP : 216.73.217.39 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/home/d2m/sofident_cz/wp-content/plugins/wordpress-seo-premium/src/wordpress/ |
Upload File : |
<?php
namespace Yoast\WP\SEO\WordPress;
use wpdb;
use WPSEO_Admin_Asset_Manager;
use WPSEO_Replace_Vars;
use Yoast_Notification_Center;
/**
* 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();
}
}