Skip to content

Commit

Permalink
feature symfony#565 Rename SyncRecipes on InstallRecipes (maxhelias)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.5-dev branch.

Discussion
----------

Rename SyncRecipes on InstallRecipes

Step 2 of symfony#518, `symfony:recipes:install` command

Commits
-------

bdfba06 Rename SyncRecipes on InstallRecipes
  • Loading branch information
nicolas-grekas committed Dec 13, 2019
2 parents e34c826 + bdfba06 commit 0e7849a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use Symfony\Flex\Event\UpdateEvent;
use Symfony\Flex\Lock;

class SyncRecipesCommand extends BaseCommand
class InstallRecipesCommand extends BaseCommand
{
private $flex;
private $rootDir;
Expand All @@ -37,8 +37,8 @@ public function __construct(/* cannot be type-hinted */ $flex, string $rootDir)

protected function configure()
{
$this->setName('symfony:sync-recipes')
->setAliases(['sync-recipes', 'fix-recipes'])
$this->setName('symfony:recipes:install')
->setAliases(['recipes:install', 'symfony:sync-recipes', 'sync-recipes', 'fix-recipes'])
->setDescription('Installs or reinstalls recipes for already installed packages.')
->addArgument('packages', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Recipes that should be installed.')
->addOption('force', null, InputOption::VALUE_NONE, 'Ignore the "symfony.lock" file and overwrite existing files')
Expand Down
2 changes: 1 addition & 1 deletion src/Flex.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class_exists(__NAMESPACE__.str_replace('/', '\\', substr($file, \strlen(__DIR__)
$app->add(new Command\UpdateCommand($resolver));
$app->add(new Command\RemoveCommand($resolver));
$app->add(new Command\UnpackCommand($resolver));
$app->add(new Command\SyncRecipesCommand($this, $this->options->get('root-dir')));
$app->add(new Command\InstallRecipesCommand($this, $this->options->get('root-dir')));
$app->add(new Command\GenerateIdCommand($this));
$app->add(new Command\DumpEnvCommand($this->config, $this->options));

Expand Down

0 comments on commit 0e7849a

Please sign in to comment.