Skip to content

Commit

Permalink
feature #442 Rename fix-recipes to sync-recipes (nicolas-grekas)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.1-dev branch.

Discussion
----------

Rename fix-recipes to sync-recipes

Would make it a bit more obvious what the command is for IMHO.
Related to #439

Commits
-------

bd94cfe Rename fix-recipes to sync-recipes
  • Loading branch information
fabpot committed Dec 11, 2018
2 parents a59f235 + bd94cfe commit 10990ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Flex\Lock;

class FixRecipesCommand extends BaseCommand
class SyncRecipesCommand extends BaseCommand
{
private $flex;

Expand All @@ -32,9 +32,9 @@ public function __construct(/* cannot be type-hinted */ $flex)

protected function configure()
{
$this->setName('symfony:fix-recipes')
->setAliases(['fix-recipes'])
->setDescription('Installs missing recipes.')
$this->setName('symfony:sync-recipes')
->setAliases(['sync-recipes', 'fix-recipes'])
->setDescription('Installs or reinstalls recipes for already installed packages.')
;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Flex.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function activate(Composer $composer, IOInterface $io)
$app->add(new Command\UpdateCommand($resolver));
$app->add(new Command\RemoveCommand($resolver));
$app->add(new Command\UnpackCommand($resolver));
$app->add(new Command\FixRecipesCommand($this));
$app->add(new Command\SyncRecipesCommand($this));
$app->add(new Command\GenerateIdCommand($this));

break;
Expand Down

0 comments on commit 10990ac

Please sign in to comment.