216 Commits (3cdca37e8588d262efbb3b589f8a68eea73738a2)

Author SHA1 Message Date
Jordi Boggiano 3b0339802b
Fix install manager usage 5 years ago
Jordi Boggiano 29612e8e8e
Remove dead code 5 years ago
Jordi Boggiano 006985a0ea
Execute all operations at once which lets us download all packages in parallel then install only once all downloads succeeded, fixes #2847
This also changes the PRE/POST_PACKAGE_INSTALL/UPDATE/UNINSTALL events to have less information available on them, repositorySet, request and policy are gone
5 years ago
Nils Adermann bf99f1a341 Fix RepositorySet constructor calls to use new signature 5 years ago
polarathene 43e0321ee7 Chore: Use consistent directory path
Only when a install directory was not specified, was the CWD prepended to `$directory`. This change provides consistency in paths displayed to the user.
5 years ago
polarathene 1b2582ff5b Chore: Improve create-project install UX
Provides feedback output before a potentially long wait on getBestCandidate() call on slow network connections where unresponsiveness/hang may be assumed.
5 years ago
polarathene 5987114f6c Fix: Fail when install location is a file
In the event a file has the same name as the intended install directory, fail fast too.
5 years ago
polarathene 11207a9a2e Fix: Check for null install directory earlier
Allows for failing fast when no install directory was provided to the command(uses package name instead).
5 years ago
polarathene e5e8736383 Fix: Fail fast when the project directory is not empty
Avoid waiting until after `getBestCandidate()` has finished, as it can add notably delay on slow connections due to downloading megabytes of data. Only to fail if the install location is invalid.
5 years ago
Nils Adermann d2fa1e1319 Merge branch 'master' into 2.0
* master: (48 commits)
  SVN: hide passwords for debug output
  Free $solver asap
  fixes #8179
  [minor] Fixed a typo in the CHANGELOG.md.
  Update deps
  Update changelog
  Revert "Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET" Revert "Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151"
  Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151
  Fix display of HHVM warning appearing when HHVM is not in use, fixes #8138
  Read classmap-authoritative and apcu-autoloader from project config when installing via create-project, fixes #8155
  Use possessive quantifiers
  Update xdebug-handler to 1.3.3
  fixes #8159
  Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET
  flag should come before script name
  use full command name, not abbreviated/alias
  modify text
  Document the alternatives to disable the default script timeout
  Anchor pattern
  Fix URL resolution for Composer repositories
  ...
5 years ago
Jordi Boggiano 659c72f9c8
Read classmap-authoritative and apcu-autoloader from project config when installing via create-project, fixes #8155 5 years ago
Jordi Boggiano 0317199507
Merge branch 'master' into 2.0 5 years ago
Markus Staab c876613d5c Added "Read more at" links to all commands (#8019) 5 years ago
Jordi Boggiano 549ccd8f79 Remote outputProgress concept from downloaders as it does not make sense when things happen in parallel, refs #7901 6 years ago
Jordi Boggiano 3dfcae99a9 Add parallel download capability to FileDownloader and derivatives 6 years ago
Jordi Boggiano 346de47af2 Small fixes 6 years ago
Nils Adermann 1228bcdffc Internalize pool creation in repository set, store root aliases in set
The pool is still exposed too early in a few places which will require
further refactoring
6 years ago
Nils Adermann 6ef65e5319 Add a new RepositorySet class and restrict pool usage to the solver
Breaking change for the plugin interface so bumping the version of
composer-plugin-api to 2.0.0

First step for a refactoring of the package metadata loading mechanism
6 years ago
Jordi Boggiano 0181f07491 Fix create-project not updating to latest commit when cache is present, fixes #7550 6 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Jordi Boggiano f42e6a5772 Compute keep-vcs/remove-vcs last minute to allow plugins to change the value, refs #7002 6 years ago
Jordi Boggiano a5e35b9e89 Add --remove-vcs flag to create-project command to allow removing user prompts, fixes #7002 7 years ago
Nicolas Grekas 251a347efb Fix CTRL+C handling during create-project 7 years ago
Jordi Boggiano 0de1e21233 Make create-project install dependencies following optimize-autoloader config setting, fixes #6722 7 years ago
Issei.M 0856dfa084 Aligns the verb form of commands' description 7 years ago
Jordi Boggiano 9a26a9e8f8 Make sure alias packages installed with create-project end up with the correct branch checked out, fixes #6082 8 years ago
Fabien Potencier 69740bbbee Refactor some common logic in Command classes 8 years ago
bohwaz abcbef4a67 Add Fossil support to Composer 8 years ago
Jordi Boggiano 4319435154 Make sure the --no-plugin is documented as available everywhere and not redefined 8 years ago
Jordi Boggiano f13e0f975f Add --no-secure-http flag to temporarily disable secure-http in create-project installation of the root package, fixes #5121 8 years ago
Jordi Boggiano da9b43dcc8 Merge remote-tracking branch 'curry684/code-quality' into 1.0 8 years ago
Jordi Boggiano 6df85163f4 Make use of global platform config if available, and improve error reporting, fixes #5165 8 years ago
Niels Keurentjes 818c3e707a Ton of phpDoc fixes. 8 years ago
Jordi Boggiano 8344c6d3d7 Merge pull request #4993 from hkdobrev/create-project-suggests
List project suggestions in create-project command
8 years ago
Haralan Dobrev cc389d6c1a List project suggestions in create-project command
Resolves https://github.com/composer/composer/issues/2752
8 years ago
Rick Guyer 2a35486d7d Check for --ignore-platform-reqs flag during create-project
During `create-project`, the installed PHP version was used to determine
the best root package install candidate, but failed to take into account
the `--ignore-platform-reqs` flag.
8 years ago
Jordi Boggiano 4b0624a93a Fix regression in create-project 8 years ago
Jordi Boggiano bf1ddaa298 Fix method name for php5 8 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 8 years ago
Jordi Boggiano f681dbc51e Merge remote-tracking branch 'curry684/rewrite-depends' 8 years ago
Peter Michaux 32eb156153 add example showing alternate syntax for specifying version 8 years ago
Niels Keurentjes 692a3ed300 Renamed Composer\Console\Command to BaseCommand for consistency with other abstract base classes. 8 years ago
Niels Keurentjes 4fe063b2e5 Added missing deprecation warning in create-project. 8 years ago
Rob Bast f829a160fb use a proper tmp directory
this test failed on OSX before, trying to create a directory at the root of the filesystem
9 years ago
Jordi Boggiano 1818b95149 CS fixes 9 years ago
Niels Keurentjes c2e768b8ad Made Silencer invocations safer against exceptions. 9 years ago
Niels Keurentjes 18cd4f966b Added silencer utility to more gracefully handle error suppression without hiding errors or worse. Fixes #4203, #4683 9 years ago
Jordi Boggiano d7c61c50ad Merge branch 'tls-config' 9 years ago
Jordi Boggiano 03299ff075 Suggest https in docs where it makes sense, closes #4056 9 years ago
Jordi Boggiano f8dff0867c Remove --disable-tls/--cafile flags and rely solely on config options plus some wording clarifications 9 years ago
Jordi Boggiano 5d015defb8 Merge remote-tracking branch 'origin/master' into tls-config 9 years ago
Jordi Boggiano 29312be4df Strict typing fixes 9 years ago
Jordi Boggiano 4b269f4ded Follow stability option in create-project to select the best possible version, refs #4563 9 years ago
Jordi Boggiano ef2856ef55 Take php version into account for create-project command version selection 9 years ago
Boris Momčilović b05b52ff7e InstallationManager: notifyInstalls: append authorization header for repository 9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Rob Bast ddb1c1e052 these 2 use parseNameVersionPairs 9 years ago
Rob Bast a1427d7fd6 replace all occurences in code and comments 9 years ago
Olivier Laviale cc522c20bb Optimized this->getIO() 9 years ago
Kunal Mehta f634c6946d Update callers of VersionParser::formatVersion()
Tests were moved to BasePackageTest.
9 years ago
Jordi Boggiano 6a64041055 CS fixes 9 years ago
Jordi Boggiano e727ed4d73 --keep-vcs should only imply prefer source for the root package in create-project, refs #4063 9 years ago
Nils Adermann 75c501251d Revert "Merge remote-tracking branch 'naderman/load-no-providers'"
This reverts commit 3e85f82373, reversing
changes made to b025d0982b.
9 years ago
Jordi Boggiano 3e85f82373 Merge remote-tracking branch 'naderman/load-no-providers' 9 years ago
Barys Biankouski a59c46f781 [create-project] If process terminated with SIGINT then 130 IMO will be returned. Remove unused variable 9 years ago
Barys Biankouski 38bc4e6a78 Added Ctrl+C support to create-project command for unix-like systems 9 years ago
Jordi Boggiano 98b339e87a Make --keep-vcs imply --prefer-source, closes #4063 9 years ago
Nils Adermann ec5416f03c loadDev parameter is nonsense, properly load packages in create command 9 years ago
Jordi Boggiano b80038804f Fix env override regression, fixes #3820 9 years ago
Francis Besset 4f57fafb8d [create-project] Used no progress value for dependencies 9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Jordi Boggiano 3efed220a6 Clean up event dispatching code and make package events extend installer events 9 years ago
Padraic Brady 510ec6b91c A couple of minor omissions from the merge 10 years ago
Padraic Brady 19e24c5804 Merge branch 'master' into tls-config
Conflicts:
	.travis.yml
	doc/03-cli.md
	src/Composer/Command/ConfigCommand.php
	src/Composer/Command/CreateProjectCommand.php
	src/Composer/Command/DiagnoseCommand.php
	src/Composer/Command/InstallCommand.php
	src/Composer/Command/RequireCommand.php
	src/Composer/Command/SelfUpdateCommand.php
	src/Composer/Command/ShowCommand.php
	src/Composer/Command/UpdateCommand.php
	src/Composer/Config.php
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Factory.php
	src/Composer/Repository/ComposerRepository.php
	src/Composer/Repository/PearRepository.php
	src/Composer/Repository/Vcs/VcsDriver.php
	src/Composer/Util/GitHub.php
	src/Composer/Util/RemoteFilesystem.php
10 years ago
Jordi Boggiano 8d0c1a14b3 Add --ignore-platform-reqs to create-project, refs #1426 10 years ago
Jordi Boggiano 3ff8bcffea Allow loading of real composer repos by local path, fixes #1899 10 years ago
Jordi Boggiano 94926218e8 CS fixes 10 years ago
Ryan Weaver aea2e901a9 Extracting logic into a new class related to selecting the latest version
Also refactored InitCommand slightly so that you can use this "latest version"
functionality when searching for a package as well.
10 years ago
Ryan Weaver 58535a62fa [#2492] Automatically using the latest version when requiring a package
This applies to the init and require commands.

Previously:

If you ommitted the version of a library, it prompted you to enter a version.

New Behavior:

If you omit the version, it automatically selects the latest version that is consistent
with your minimum-stability flag.

Is Jordi mentions, this is consistent with how npm works.
10 years ago
Ryan Weaver 947db97e33 [#2492] Removing an unused variable and use statement, fixing phpdoc 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Stephan Hochdörfer 493ebbaacb Fix to load the auth information before the root package gets installed. 10 years ago
Jordi Boggiano b437c1cc05 Support github auth directly in the RemoteFilesystem class 10 years ago
Pierre du Plessis 244e865a35 Fix typo 10 years ago
Pádraic Brady 306ba77e93 Implement the RemoteFilesystem Factory everywhere...
- also fixes impacted test
10 years ago
Pádraic Brady d8cbd9f057 Expand cli TLS options to other commands + misc fixes 10 years ago
Sandy Pleyte ee62ec60f0 Remove old comment 10 years ago
Sandy Pleyte ab8f67e8cf Always use rootPackage config 10 years ago
Sandy Pleyte 9af5eaa574 Refactored the code with the switch statement. 10 years ago
Sandy Pleyte bc7c93ae85 Fix for #1966, use the preferred-install from the rootPackage config to install the dependencies. 10 years ago
Jordi Boggiano e126c92525 Fix exit codes, cc @tyrael 11 years ago
Bilal Amarni 61cc291c8a [CreateProject] allowed pretty version constraint 11 years ago
Jordi Boggiano 6e4e10620a Merge remote-tracking branch 'gerryvdm/feature'
Conflicts:
	src/Composer/Command/CreateProjectCommand.php
11 years ago
Jordi Boggiano 3f6227a996 Add workaround for php bug 53460 glob() can return false, fixes #2278 11 years ago
Gerry Vandermaesen eb72e1692c Added --no-install option to create-project command
Added a --no-install option to the create-project command that
skips installation of the dependencies in the newly created
project.
11 years ago
Nils Adermann 242c58c789 Merge pull request #2179 from naderman/plugins
Plugins
11 years ago
Jordi Boggiano 80184b87d1 Fix undefined index error, fixes #2224 11 years ago
Nils Adermann 15ac7be6f1 Fix disabling plugins which has to happen in the factory now 11 years ago
Nils Adermann f0b45099c1 Correct authorship info for files I edited 11 years ago
Nils Adermann b83535d2d9 Add back --no-custom-installers option with a deprecated warning 11 years ago