File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 77
88class MinifyMiddleware
99{
10- private $ minPath = 'min/ ' ;
11- private $ ignoreUrls = [];
12-
1310 /**
1411 * before response sent back to browser
1512 */
Original file line number Diff line number Diff line change 22
33namespace Thoughtco \Minify ;
44
5- use Illuminate \Contracts \Http \Kernel ;
65use Illuminate \Support \Facades \File ;
76use Statamic \Providers \AddonServiceProvider ;
87use Statamic \Statamic ;
98use Thoughtco \Minify \Middleware \MinifyMiddleware ;
109
1110class ServiceProvider extends AddonServiceProvider
1211{
12+ protected $ middlewareGroups = [
13+ 'web ' => [
14+ MinifyMiddleware::class,
15+ ],
16+ ];
17+
1318 public function boot ()
1419 {
1520 parent ::boot ();
1621
17- app (Kernel::class)->pushMiddleware (MinifyMiddleware::class);
18-
1922 Statamic::afterInstalled (function ($ command ) {
2023
2124 if (File::exists (config_path ('thoughtco/minify.php ' )))
You can’t perform that action at this time.
0 commit comments