protected function load_libraries()
 {
     require_once dirname(__FILE__) . '/common-functions.php';
     require_once dirname(__FILE__) . '/class-bwp-enqueued-detector.php';
     require_once dirname(__FILE__) . '/class-bwp-minify-fetcher.php';
     require_once dirname(__FILE__) . '/class-bwp-minify-cdn.php';
     $this->_load_rewriter_class();
     // init the detector class, responsible for detecting and logging
     // enqueued files
     $this->detector = new BWP_Enqueued_Detector($this->options, $this->domain);
     $this->detector->set_log(BWP_MINIFY_DETECTOR_LOG);
 }
 function init_properties()
 {
     $this->get_base();
     $this->http_host = $this->_get_http_host();
     $this->buster = $this->get_buster($this->options['select_buster_type']);
     $this->min_path = $this->get_min_path();
     $this->min_cache_dir = $this->get_cache_dir();
     $this->min_url = trailingslashit($this->http_host) . ltrim($this->min_path, '/');
     $this->doc_root = $this->get_doc_root();
     $this->fly_min_path = $this->get_fly_min_path();
     $this->fly_min_url = $this->get_fly_min_url();
     // init the detector class, responsible for detecting and logging
     // enqueued files
     $this->detector = new BWP_Enqueued_Detector($this->options, $this->domain);
     $this->detector->set_log(BWP_MINIFY_DETECTOR_LOG);
     // init fetcher class if needed, responsible for serving friendly minify urls
     if ('yes' == $this->options['enable_fly_min']) {
         $this->fetcher = new BWP_Minify_Fetcher($this->options, $this->domain);
         $this->fetcher->set_main($this);
         $this->fetcher->set_detector($this->detector);
         $this->fetcher->set_min_url($this->min_url);
         $this->fetcher->set_min_fly_url($this->fly_min_url);
     }
     // init the CDN class if needed
     if ('yes' == $this->options['enable_cdn']) {
         $this->cdn = new BWP_Minify_CDN($this->options, $this->domain);
     }
 }