PluginProbe
WP Super Minify • Minify, Compress and Cache HTML, CSS & JavaScript / trunk
WP Super Minify • Minify, Compress and Cache HTML, CSS & JavaScript vtrunk
trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.4 1.5 1.5.1 1.6 2.0 2.0.1
wp-super-minify / includes / min / bootstrap.php

bootstrap.php in WP Super Minify • Minify, Compress and Cache HTML, CSS & JavaScript trunk, at includes/min/bootstrap.php

26 lines 658 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Sets up autoloading and returns the Minify\App
4 */
5
6 call_user_func(function () {
7 if (is_dir(__DIR__ . '/../../../vendor')) {
8 // Used as a composer library
9 $vendorDir = __DIR__ . '/../../../vendor';
10 } else {
11 $vendorDir = __DIR__ . '/vendor';
12 }
13
14 $file = $vendorDir . '/autoload.php';
15 if (!is_file($file)) {
16 echo 'You must set up the project dependencies, run the following commands:'.PHP_EOL.
17 'curl -sS https://getcomposer.org/installer | php'.PHP_EOL.
18 'php composer.phar install'.PHP_EOL;
19 exit(1);
20 }
21
22 require $file;
23 });
24
25 return new \Minify\App(__DIR__);
26