# wp-super-minify/trunk/includes/min/lib/Minify/Loader.php

WP Super Minify • Minify, Compress and Cache HTML, CSS &amp; JavaScript, version trunk. 34 lines.

- Page: https://pluginprobe.com/plugins/wp-super-minify/trunk/code/includes/min/lib/Minify/Loader.php
- Raw: https://pluginprobe.com/plugins/wp-super-minify/trunk/raw/includes/min/lib/Minify/Loader.php
- Modified: 2016-12-30T16:19:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-super-minify/trunk/code/includes/min/lib/Minify/Loader.php#L10-L20`.

```php
<?php
/**
 * Class Minify_Loader
 * @package Minify
 */

/**
 * Class autoloader
 *
 * @package Minify
 * @author Stephen Clay <steve@mrclay.org>
 *
 * @deprecated 2.3 This will be removed in Minify 3.0
 */
class Minify_Loader {
    public function loadClass($class)
    {
        $file = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR;
        $file .= strtr($class, "\\_", DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR) . '.php';
        if (is_readable($file)) {
            require $file;
        }
    }

    /**
     * @deprecated 2.3 This will be removed in Minify 3.0
     */
    static public function register()
    {
        $inst = new self();
        spl_autoload_register(array($inst, 'loadClass'));
    }
}

```
