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