C:\xampp\htdocs\landing\wp-content\plugins\hummingbird-performance\core\api\class-api.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
 * Hummingbird API class.
 *
 * @package Hummingbird
 */

namespace Hummingbird\Core\Api;

use 
Hummingbird\Core\Api\Service\Cloudflare;
use 
Hummingbird\Core\Api\Service\Minify;
use 
Hummingbird\Core\Api\Service\Performance;
use 
Hummingbird\Core\Api\Service\Uptime;
use 
Hummingbird\Core\Api\Service\Varnish;

if ( ! 
defined'ABSPATH' ) ) {
    exit;
}

/**
 * Class API
 */
class API {

    
/**
     * API constructor.
     *
     * @throws Exception  Exception.
     */
    
public function __construct() {
        
$this->uptime      = new Uptime();
        
$this->performance = new Performance();
        
$this->cloudflare  = new Cloudflare();
        
$this->minify      = new Minify();
        
$this->varnish     = new Varnish();

        
// Init Hub endpoints.
        
$this->hub = new Hub();

        
// Init REST endpoints.
        
$this->rest = new Rest();
    }

}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586