From 2ab8acfef5d7e784148b2367b5bcf083a0d0d024 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 15 Mar 2018 11:36:16 -0500 Subject: [PATCH] rename command --- ...eCacheCommand.php => ViewCacheCommand.php} | 4 +-- .../Providers/ArtisanServiceProvider.php | 28 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) rename src/Illuminate/Foundation/Console/{BladeCacheCommand.php => ViewCacheCommand.php} (95%) diff --git a/src/Illuminate/Foundation/Console/BladeCacheCommand.php b/src/Illuminate/Foundation/Console/ViewCacheCommand.php similarity index 95% rename from src/Illuminate/Foundation/Console/BladeCacheCommand.php rename to src/Illuminate/Foundation/Console/ViewCacheCommand.php index f813a28c655b..8f7c8844bb98 100644 --- a/src/Illuminate/Foundation/Console/BladeCacheCommand.php +++ b/src/Illuminate/Foundation/Console/ViewCacheCommand.php @@ -8,14 +8,14 @@ use Symfony\Component\Finder\Finder; use Symfony\Component\Finder\SplFileInfo; -class BladeCacheCommand extends Command +class ViewCacheCommand extends Command { /** * The name and signature of the console command. * * @var string */ - protected $signature = 'blade:cache'; + protected $signature = 'view:cache'; /** * The console command description. diff --git a/src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php b/src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php index a44af2cb498a..85d3a75624ee 100755 --- a/src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php +++ b/src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php @@ -23,9 +23,9 @@ use Illuminate\Foundation\Console\RouteListCommand; use Illuminate\Foundation\Console\ViewClearCommand; use Illuminate\Session\Console\SessionTableCommand; +use Illuminate\Foundation\Console\ViewCacheCommand; use Illuminate\Foundation\Console\PolicyMakeCommand; use Illuminate\Foundation\Console\RouteCacheCommand; -use Illuminate\Foundation\Console\BladeCacheCommand; use Illuminate\Foundation\Console\RouteClearCommand; use Illuminate\Console\Scheduling\ScheduleRunCommand; use Illuminate\Foundation\Console\ChannelMakeCommand; @@ -84,7 +84,6 @@ class ArtisanServiceProvider extends ServiceProvider * @var array */ protected $commands = [ - 'BladeCache' => 'command.blade.cache', 'CacheClear' => 'command.cache.clear', 'CacheForget' => 'command.cache.forget', 'ClearCompiled' => 'command.clear-compiled', @@ -118,6 +117,7 @@ class ArtisanServiceProvider extends ServiceProvider 'ScheduleRun' => ScheduleRunCommand::class, 'StorageLink' => 'command.storage.link', 'Up' => 'command.up', + 'ViewCache' => 'command.view.cache', 'ViewClear' => 'command.view.clear', ]; @@ -210,18 +210,6 @@ protected function registerAuthMakeCommand() }); } - /** - * Register the command. - * - * @return void - */ - protected function registerBladeCacheCommand() - { - $this->app->singleton('command.blade.cache', function ($app) { - return new BladeCacheCommand; - }); - } - /** * Register the command. * @@ -933,6 +921,18 @@ protected function registerVendorPublishCommand() }); } + /** + * Register the command. + * + * @return void + */ + protected function registerViewCacheCommand() + { + $this->app->singleton('command.view.cache', function ($app) { + return new ViewCacheCommand; + }); + } + /** * Register the command. *