Skip to content

Commit e87d82f

Browse files
committed
Rename ListFeatures to ListCommands
1 parent 320f7f5 commit e87d82f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/Console/ListFeatures.php renamed to src/Console/ListCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
use Illuminate\Console\Command;
77
use Jaspaul\LaravelRollout\FeaturePresenter;
88

9-
class ListFeatures extends Command
9+
class ListCommand extends Command
1010
{
1111
/**
1212
* The name and signature of the console command.
1313
*
1414
* @var string
1515
*/
16-
protected $signature = 'rollout:list-features';
16+
protected $signature = 'rollout:list';
1717

1818
/**
1919
* The console command description.

src/ServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Opensoft\Rollout\Rollout;
66
use Jaspaul\LaravelRollout\Drivers\Cache;
7-
use Jaspaul\LaravelRollout\Console\ListFeatures;
7+
use Jaspaul\LaravelRollout\Console\ListCommand;
88
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;
99

1010
class ServiceProvider extends IlluminateServiceProvider
@@ -20,6 +20,6 @@ public function boot()
2020
return new Rollout(new Cache($app->make('cache.store')));
2121
});
2222

23-
$this->commands([ListFeatures::class]);
23+
$this->commands([ListCommand::class]);
2424
}
2525
}

tests/Console/ListFeaturesTest.php renamed to tests/Console/ListCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use Illuminate\Cache\ArrayStore;
88
use Illuminate\Cache\Repository;
99
use Jaspaul\LaravelRollout\Drivers\Cache;
10-
use Jaspaul\LaravelRollout\Console\ListFeatures;
10+
use Jaspaul\LaravelRollout\Console\ListCommand;
1111

12-
class ListFeaturesTest extends TestCase
12+
class ListCommandTest extends TestCase
1313
{
1414
private $command;
1515
private $rollout;
@@ -20,7 +20,7 @@ class ListFeaturesTest extends TestCase
2020
function setup_command()
2121
{
2222
$this->rollout = new Rollout(new Cache(new Repository(new ArrayStore())));
23-
$this->command = new ListFeatures($this->rollout);
23+
$this->command = new ListCommand($this->rollout);
2424
}
2525

2626
/**

tests/ServiceProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Illuminate\Container\Container;
88
use Illuminate\Contracts\Cache\Repository;
99
use Jaspaul\LaravelRollout\ServiceProvider;
10-
use Jaspaul\LaravelRollout\Console\ListFeatures;
10+
use Jaspaul\LaravelRollout\Console\ListCommand;
1111
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;
1212

1313
class ServiceProviderTest extends TestCase
@@ -60,7 +60,7 @@ function booting_registers_our_commands()
6060
$serviceProvider = new TestServiceProvider($this->container);
6161
$serviceProvider->boot();
6262

63-
$this->assertEquals([ListFeatures::class], $serviceProvider->commands);
63+
$this->assertEquals([ListCommand::class], $serviceProvider->commands);
6464
}
6565
}
6666

0 commit comments

Comments
 (0)