Skip to content

Commit 2ab8acf

Browse files
committed
rename command
1 parent 9fd1273 commit 2ab8acf

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/Illuminate/Foundation/Console/BladeCacheCommand.php renamed to src/Illuminate/Foundation/Console/ViewCacheCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
use Symfony\Component\Finder\Finder;
99
use Symfony\Component\Finder\SplFileInfo;
1010

11-
class BladeCacheCommand extends Command
11+
class ViewCacheCommand extends Command
1212
{
1313
/**
1414
* The name and signature of the console command.
1515
*
1616
* @var string
1717
*/
18-
protected $signature = 'blade:cache';
18+
protected $signature = 'view:cache';
1919

2020
/**
2121
* The console command description.

src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
use Illuminate\Foundation\Console\RouteListCommand;
2424
use Illuminate\Foundation\Console\ViewClearCommand;
2525
use Illuminate\Session\Console\SessionTableCommand;
26+
use Illuminate\Foundation\Console\ViewCacheCommand;
2627
use Illuminate\Foundation\Console\PolicyMakeCommand;
2728
use Illuminate\Foundation\Console\RouteCacheCommand;
28-
use Illuminate\Foundation\Console\BladeCacheCommand;
2929
use Illuminate\Foundation\Console\RouteClearCommand;
3030
use Illuminate\Console\Scheduling\ScheduleRunCommand;
3131
use Illuminate\Foundation\Console\ChannelMakeCommand;
@@ -84,7 +84,6 @@ class ArtisanServiceProvider extends ServiceProvider
8484
* @var array
8585
*/
8686
protected $commands = [
87-
'BladeCache' => 'command.blade.cache',
8887
'CacheClear' => 'command.cache.clear',
8988
'CacheForget' => 'command.cache.forget',
9089
'ClearCompiled' => 'command.clear-compiled',
@@ -118,6 +117,7 @@ class ArtisanServiceProvider extends ServiceProvider
118117
'ScheduleRun' => ScheduleRunCommand::class,
119118
'StorageLink' => 'command.storage.link',
120119
'Up' => 'command.up',
120+
'ViewCache' => 'command.view.cache',
121121
'ViewClear' => 'command.view.clear',
122122
];
123123

@@ -210,18 +210,6 @@ protected function registerAuthMakeCommand()
210210
});
211211
}
212212

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-
225213
/**
226214
* Register the command.
227215
*
@@ -933,6 +921,18 @@ protected function registerVendorPublishCommand()
933921
});
934922
}
935923

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+
936936
/**
937937
* Register the command.
938938
*

0 commit comments

Comments
 (0)