# wp-optimize/4.7.0/vendor/mrclay/minify/bootstrap.php

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 4.7.0. 26 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/4.7.0/code/vendor/mrclay/minify/bootstrap.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/4.7.0/raw/vendor/mrclay/minify/bootstrap.php
- Modified: 2021-06-07T22:42:16+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-optimize/4.7.0/code/vendor/mrclay/minify/bootstrap.php#L10-L20`.

```php
<?php
/**
 * Sets up autoloading and returns the Minify\App
 */

call_user_func(function () {
    if (is_dir(__DIR__ . '/../../../vendor')) {
        // Used as a composer library
        $vendorDir = __DIR__ . '/../../../vendor';
    } else {
        $vendorDir = __DIR__ . '/vendor';
    }

    $file = $vendorDir . '/autoload.php';
    if (!is_file($file)) {
        echo 'You must set up the project dependencies, run the following commands:'.PHP_EOL.
            'curl -sS https://getcomposer.org/installer | php'.PHP_EOL.
            'php composer.phar install'.PHP_EOL;
        exit(1);
    }

    require $file;
});

return new \Minify\App(__DIR__);

```
