if (file_exists($basePath . '/vendor/autoload.php')) {
    require_once $basePath . '/vendor/autoload.php';
} else {
    if (!headers_sent()) {
        header($_SERVER['SERVER_PROTOCOL'] . " 500 Server Error");
        header('Content-Type: text/plain');
    }
    echo "Failed to include composer's autoloader, unable to continue\n";
    exit(1);
}
// Handle incoming request if it's a script call
if (TinyMCE_Compressor::getParam("js")) {
    // Default settings
    $tinyMCECompressor = new TinyMCE_Compressor(array('cache_dir' => TEMP_FOLDER));
    // Handle request, compress and stream to client
    $tinyMCECompressor->handleRequest();
}
/**
 * This class combines and compresses the TinyMCE core, plugins, themes and
 * language packs into one disk cached gzipped request. It improves the loading speed of TinyMCE dramatically but
 * still provides dynamic initialization.
 *
 * Example of direct usage:
 * require_once("../js/tinymce/tinymce.gzip.php");
 *
 * // Renders script tag with compressed scripts
 * TinyMCE_Compressor::renderTag(array(
 *    "url" => "../js/tinymce/tinymce.gzip.php",
 *    "plugins" => "pagebreak,style",
 *    "themes" => "advanced",
 *    "languages" => "en"