File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/Roots/Acorn/Console/Commands Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,9 @@ public function handle()
18
18
{
19
19
$ this ->components ->info ('Caching framework bootstrap, configuration, and metadata. ' );
20
20
21
- collect ([
22
- 'config ' => fn () => $ this ->gracefulCallSilent ('config:cache ' ) == 0 ,
23
- 'events ' => fn () => $ this ->gracefulCallSilent ('event:cache ' ) == 0 ,
24
- 'routes ' => fn () => $ this ->gracefulCallSilent ('route:cache ' ) == 0 ,
25
- 'views ' => fn () => $ this ->gracefulCallSilent ('view:cache ' ) == 0 ,
26
- ])->each (fn ($ task , $ description ) => $ this ->components ->task ($ description , $ task ));
21
+ foreach ($ this ->getOptimizeTasks () as $ description => $ command ) {
22
+ $ this ->components ->task ($ description , fn () => $ this ->gracefulCallSilent ($ command ) == 0 );
23
+ }
27
24
28
25
$ this ->newLine ();
29
26
}
You can’t perform that action at this time.
0 commit comments