PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.5.3
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.5.3
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / mrclay / minify / bootstrap.php

bootstrap.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 4.5.3, at vendor/mrclay/minify/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