26 Commits (4d20e6f5d651b815ff16adf2a5ceeb3b77dd1bcb)

Author SHA1 Message Date
Jordi Boggiano c3028c02d9
Merge branch '1.10' 4 years ago
Jordi Boggiano eac03e16e7
Reuse repository manager and others directly from the Composer instance, refs #9057 4 years ago
Jordi Boggiano 201533e16f
Fix return value 4 years ago
Jordi Boggiano a2ab6f2b54
Add support for multiple --repository additions in create-project, and make --add-repository delete the lock file, fixes #8853 4 years ago
Jordi Boggiano a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks 4 years ago
Jordi Boggiano bc002ae1fb
Merge branch 'master' into 2.0 5 years ago
Stephan Vock 2a564a9f36 Create project: add option to add the repository to the composer.json 5 years ago
Nils Adermann 728e57b9e0 Merge branch 'master' into 2.0
* master:
  Fix solver problem exceptions with unexpected contradictory "Conclusions"
  Also load config into IO if not freshly created
  Only load configuration into IO if IO is available
  Fix defaultRepos fallback does not use auth config
  Add warning/info msg when tweaking disable-tls setting to avoid confusion, fixes #7935
6 years ago
Arnout Boks 82b010782d Also load config into IO if not freshly created 6 years ago
Arnout Boks e151a6c51c Only load configuration into IO if IO is available 6 years ago
Arnout Boks d1ce9f6246 Fix defaultRepos fallback does not use auth config
When a full 'composer' cannot be constructed (because there is no
local composer.json and no global composer.json), some commands
(e.g. `show -a`) fall back to the default repositories from the
`$COMPOSER_HOME/config.json` file. Without this fix, any auth
configuration from `$COMPOSER_HOME/auth.json` is not used for
these repositories in such a fallback scenario.

Steps to reproduce:

* Configure a password-protected composer repository in
  `$COMPOSER_HOME/config.json`.
* Configure valid credentials for that repository in
  `$COMPOSER_HOME/auth.json`.
* Make sure there is no file `$COMPOSER_HOME/composer.json`.
* Ensure the current working directory has no `composer.json`.
* Run `composer show -a some/package`.

Expected: Information about `some/package` is shown without
needing to enter credentials.

Actual: A prompt "Authentication required" is shown for the
private repository. When running the same command in a dir
that has a `composer.json`, or when `$COMPOSER_HOME/composer.json`
exists, things work as expected.
6 years ago
Jordi Boggiano f946d8eb5a More RemoteFilesystem usage removals and some repository/vcs driver refactorings 6 years ago
Jordi Boggiano 713bc4de1d Minor fixes and updated the rest of the code/tests to use HttpDownloader 6 years ago
Jordi Boggiano 56805ecafe Add HttpDownloader to wrap/replace RemoteFilesystem with a new curl multi implementation 6 years ago
Jean Baptiste Noblot 621a9d845c Add 'git-bitbucket' in RepositoryFactory
Add 'git-bitbucket' and 'hg-bitbucket' in RepositoryFactory help to call good driver in vcs
Cause if you config your repository type with 'git'. the GitDriver is instantiate and not GitBitbucketDriver

Fix #5389
7 years ago
Martin Hasoň 3c5bfcf1e9 Register github repository type 7 years ago
Christophe Coevoet 978b87f7bd Fix the class name for fossil repositories 8 years ago
bohwaz abcbef4a67 Add Fossil support to Composer 8 years ago
Jordi Boggiano 5a3d60c0cf Output warning for invalid-looking packagist config, fixes #5404 8 years ago
Jordi Boggiano 3b0a1c6f70 Run cs fixer and update config to latest master 9 years ago
Niels Keurentjes eb77c0b7f5 phpDoc cleanup, removed unused imports, variables and parameters. 9 years ago
Niels Keurentjes 818c3e707a Ton of phpDoc fixes. 9 years ago
Jordi Boggiano b2b4603215 Fix handling of http://foo/packages.json style repo URLs, fixes #5135 9 years ago
Jordi Boggiano 8cfbe7023d CS fixes 9 years ago
Jordi Boggiano bf1ddaa298 Fix method name for php5 9 years ago
Jordi Boggiano 1aec1c1fc8 Add --repository flag to init command, and rename --repository-url to --repository in create-project, fixes #4200, closes #4207, closes #2604, fixes #2920 9 years ago