Current Path : /var/www/wptbox/wp-content/mu-plugins/wp-nc-easywp/bootstrap/ |
Current File : /var/www/wptbox/wp-content/mu-plugins/wp-nc-easywp/bootstrap/autoload.php |
<?php if (!defined('ABSPATH')) { exit; } /* |-------------------------------------------------------------------------- | Register The Composer Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader | for our application. We just need to utilize it! We'll require it | into the script here so that we do not have to worry about the | loading of any our classes "manually". Feels great to relax. | */ require_once __DIR__ . '/../vendor/autoload.php'; /* |-------------------------------------------------------------------------- | Plugin Static class |-------------------------------------------------------------------------- | | We will use this static class to keep global the plugin information | */ final class WPNCEasyWP { public const TEXTDOMAIN = 'wp-nc-easywp'; public static $plugin; public static $start; } WPNCEasyWP::$plugin = require_once __DIR__ . '/plugin.php'; WPNCEasyWP::$start = microtime(true); // Commodity function to get the plugin instance if (!function_exists('WPNCEasyWP')) { /** * Return the instance of plugin. * * @return Plugin */ function WPNCEasyWP() { return WPNCEasyWP::$plugin; } }