Skip to content

Commit

Permalink
Remove overriding native composer commands
Browse files Browse the repository at this point in the history
That doesn't work since Composer v2.1.6 and this commit anyway:
composer/composer@9727adf
  • Loading branch information
nicolas-grekas committed Jun 2, 2022
1 parent 676f7e2 commit cd634ef
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 171 deletions.
36 changes: 0 additions & 36 deletions src/Command/RemoveCommand.php

This file was deleted.

90 changes: 0 additions & 90 deletions src/Command/RequireCommand.php

This file was deleted.

41 changes: 0 additions & 41 deletions src/Command/UpdateCommand.php

This file was deleted.

4 changes: 0 additions & 4 deletions src/Flex.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ class_exists(__NAMESPACE__.str_replace('/', '\\', substr($file, \strlen(__DIR__)
}

if (isset(self::$aliasResolveCommands[$command])) {
// early resolve for BC with Composer 1.0
if ($input->hasArgument('packages')) {
$input->setArgument('packages', $resolver->resolve($input->getArgument('packages'), self::$aliasResolveCommands[$command]));
}
Expand Down Expand Up @@ -279,9 +278,6 @@ class_exists(__NAMESPACE__.str_replace('/', '\\', substr($file, \strlen(__DIR__)
$this->populateRepoCacheDir();
}

$app->add(new Command\RequireCommand($resolver, \Closure::fromCallable([$this, 'updateComposerLock'])));
$app->add(new Command\UpdateCommand($resolver));
$app->add(new Command\RemoveCommand($resolver));
$app->add(new Command\UnpackCommand($resolver));
$app->add(new Command\RecipesCommand($this, $this->lock, $rfs));
$app->add(new Command\InstallRecipesCommand($this, $this->options->get('root-dir'), $this->options->get('runtime')['dotenv_path'] ?? '.env'));
Expand Down

0 comments on commit cd634ef

Please sign in to comment.