Skip to content

Commit

Permalink
rename command
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 15, 2018
1 parent 9fd1273 commit 2ab8acf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
28 changes: 14 additions & 14 deletions src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
];

Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit 2ab8acf

Please sign in to comment.