|
23 | 23 | use Illuminate\Foundation\Console\RouteListCommand;
|
24 | 24 | use Illuminate\Foundation\Console\ViewClearCommand;
|
25 | 25 | use Illuminate\Session\Console\SessionTableCommand;
|
| 26 | +use Illuminate\Foundation\Console\ViewCacheCommand; |
26 | 27 | use Illuminate\Foundation\Console\PolicyMakeCommand;
|
27 | 28 | use Illuminate\Foundation\Console\RouteCacheCommand;
|
28 |
| -use Illuminate\Foundation\Console\BladeCacheCommand; |
29 | 29 | use Illuminate\Foundation\Console\RouteClearCommand;
|
30 | 30 | use Illuminate\Console\Scheduling\ScheduleRunCommand;
|
31 | 31 | use Illuminate\Foundation\Console\ChannelMakeCommand;
|
@@ -84,7 +84,6 @@ class ArtisanServiceProvider extends ServiceProvider
|
84 | 84 | * @var array
|
85 | 85 | */
|
86 | 86 | protected $commands = [
|
87 |
| - 'BladeCache' => 'command.blade.cache', |
88 | 87 | 'CacheClear' => 'command.cache.clear',
|
89 | 88 | 'CacheForget' => 'command.cache.forget',
|
90 | 89 | 'ClearCompiled' => 'command.clear-compiled',
|
@@ -118,6 +117,7 @@ class ArtisanServiceProvider extends ServiceProvider
|
118 | 117 | 'ScheduleRun' => ScheduleRunCommand::class,
|
119 | 118 | 'StorageLink' => 'command.storage.link',
|
120 | 119 | 'Up' => 'command.up',
|
| 120 | + 'ViewCache' => 'command.view.cache', |
121 | 121 | 'ViewClear' => 'command.view.clear',
|
122 | 122 | ];
|
123 | 123 |
|
@@ -210,18 +210,6 @@ protected function registerAuthMakeCommand()
|
210 | 210 | });
|
211 | 211 | }
|
212 | 212 |
|
213 |
| - /** |
214 |
| - * Register the command. |
215 |
| - * |
216 |
| - * @return void |
217 |
| - */ |
218 |
| - protected function registerBladeCacheCommand() |
219 |
| - { |
220 |
| - $this->app->singleton('command.blade.cache', function ($app) { |
221 |
| - return new BladeCacheCommand; |
222 |
| - }); |
223 |
| - } |
224 |
| - |
225 | 213 | /**
|
226 | 214 | * Register the command.
|
227 | 215 | *
|
@@ -933,6 +921,18 @@ protected function registerVendorPublishCommand()
|
933 | 921 | });
|
934 | 922 | }
|
935 | 923 |
|
| 924 | + /** |
| 925 | + * Register the command. |
| 926 | + * |
| 927 | + * @return void |
| 928 | + */ |
| 929 | + protected function registerViewCacheCommand() |
| 930 | + { |
| 931 | + $this->app->singleton('command.view.cache', function ($app) { |
| 932 | + return new ViewCacheCommand; |
| 933 | + }); |
| 934 | + } |
| 935 | + |
936 | 936 | /**
|
937 | 937 | * Register the command.
|
938 | 938 | *
|
|
0 commit comments