662 Commits (84d4594278baa68f931f5de93c1714baa2cdf830)

Author SHA1 Message Date
Jordi Boggiano 47a542ea89 Merge remote-tracking branch 'chr0n1x/feature-selfupdate-rollback' 11 years ago
Jordi Boggiano f85a366eb9 Finalize new autoloader-suffix config value, refs #2524, fixes #1413 11 years ago
chr0n1x d26355ef65 SelfUpdateCommand: removed unneeded return 11 years ago
chr0n1x 0c76bba8bb SelfUpdateCommand: do not delete old snapshots, allow user to clean them 11 years ago
chr0n1x bc5ce1ce04 SelfUpdateCommand: only use 1 rollback snapshot at a time 11 years ago
chr0n1x 2760221767 SelfUpdateCommand: initial groundwork for --rollback 11 years ago
Max Gfeller 421b09dc44 Check if a given event has registered any listeners. If not the script
is not defined in the composer.json file
11 years ago
Max Gfeller 040bbaca51 Don't throw an exception if the called script is not one of the
event-scripts. This makes it possible for one to define their own
scripts like "make-release" etc.
11 years ago
Andreas Hennings 39c09d5192 Add psr-4 stuff in a few more places. 11 years ago
Pierre du Plessis 5267622bba Add remove command to remove a package from the list of current installed packages 11 years ago
Jordi Boggiano 10f8e564bb Add warnings for xdebug, fixes #2425 11 years ago
Jordi Boggiano e126c92525 Fix exit codes, cc @tyrael 11 years ago
Bilal Amarni 61cc291c8a [CreateProject] allowed pretty version constraint 11 years ago
Dimitrios Kanellopoulos 81820beefc Cache path never ends with '/' 11 years ago
Dimitrios Kanellopoulos 95a9ac880b Check if current dir is writable and if not try the cache dir from settings 11 years ago
Dimitrios Kanellopoulos 9477e015bd Use cache directory when downloading composer.phar
Since there is a cache dir there is no need to populate the project
directory with temp files. Plus the permissions on the project dir
might not allow that.
11 years ago
Gennady Feldman f8376a5b34 Updating ConfigCommand so that we can set github-domains from the command line. 11 years ago
Phillip Look 07a7284ffc Change dependency processing for update with whitelisted packages
By default dependencies of white listed packages are no longer installed automaticaly.
To Install dependencies of whitelisted packages use --with-dependencies.
- rework after review comments
- precise documentation of option
- add missing punctuation marks
11 years ago
Jordi Boggiano 11a0d16ccc CS fixes 11 years ago
Jordi Boggiano 57146c12b4 Warn user that commands are being run in another directory 11 years ago
Nicolas Bastien 52711d121c Remove unused use statement. 11 years ago
Jordi Boggiano 05ffc605f1 Ignore chmod failures, fixes #1854 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
Haralan Dobrev 4abaaaf76d Use default description and license from CLI args
When running `composer init` with `--description` and `--license` arguments
on the command line they are later suggested as defaults during the
interactive flow. However when you press Enter (to use the default suggesstion)
Composer does not use it, but instead skip them entirely from the `composer.json`
generation.

This change provides a default argument not only to `DialogHelper::getQuestion()`,
but also to `DialogHelper::ask()`.
11 years ago
Romain Neutron 9b7fc0bae7 Update INF to PHP_INT_MAX as recommended by Stof 11 years ago
Romain Neutron a965642769 Do not use detected width for output formatting if it is not available 11 years ago
Jordi Boggiano e330763c5f Fix issue when multiple paths are mapped to one dir in the show command 11 years ago
Jordi Boggiano 0eb2821733 Fix undefined var error, fixes #2241 11 years ago
Nils Adermann 242c58c789 Merge pull request #2179 from naderman/plugins
Plugins
11 years ago
Nils Adermann d00ca4bcdb Add a Command event triggered by all comands which load 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
Nils Adermann 01a08a2ff3 As preparation for composer plugins, rename custom installers to plugins 11 years ago
Jordi Boggiano ef072ff8c0 Merge pull request #2205 from unn/patch-1
Update help docs for the global command
11 years ago
Jordi Boggiano 51ea1f03f9 Validate constraints in require command, fixes #2197 11 years ago
Jordi Boggiano c2dc433fa4 Improve global command to support short command resolution 11 years ago
David Stoline 54a74e81d5 Add a note about customizations 11 years ago
David Stoline 6eee550c2f Update help docs for the global command
I noticed that COMPOSER_HOME/vendor/bin was wrong. Correcting.
11 years ago
Jordi Boggiano 7311bc77e6 Add global command to be able to require/install/update global packages, fixes #1813, fixes #55 11 years ago
Nils Adermann c6aa97ed8a Merge pull request #2153 from renanbr/archive-prefer-dist
prefer-dist and archive synchronized
11 years ago
Jordi Boggiano f9ce367c10 Remove dangling vendor/composer dir after create-project, fixes #2025 11 years ago
Jordi Boggiano 187017cc0d Minor tweaks, refs #2075 11 years ago
Jordi Boggiano b0e72f0910 Merge remote-tracking branch 'trompette/license-tools' 11 years ago
Renan de Lima 610e272faa use available $io in archive
https://github.com/composer/composer/pull/2099#pullrequestreviewcomment-5318806
11 years ago
Renan de Lima d17935acd2 attach IO to DownloadManager in "package" command 11 years ago
bronze1man 9a1f4e4458 fix some files mode bug 755->644 11 years ago
Sascha Egerer c13327dd75 CGL fix 11 years ago
Sascha Egerer e31a0f8296 Add pre-status-cmd and post-status-cmd hooks 11 years ago
Jordi Boggiano 1217a632fe Adjust function signatures and add type hints, refs #2136 11 years ago
Sascha Egerer 667176d1d0 Add ChangeReport Interface
Added a ChangeReport Interface to allow also non VCS-Downloaders to check the status of there package
11 years ago
Przemysław Piechota 95cbb177dd Init command - diacritical marks in author name 11 years ago
Benoît Merlet 4a3c419e74 thrown exception when using an unsupported format 11 years ago
Benoît Merlet 7591c064f5 used TableHelper for text output 11 years ago
Benoît Merlet fbbd6f8999 refactored alignment of text output 11 years ago
Benoît Merlet bf0b42efaa renamed flat format to text 11 years ago
Benoît Merlet 4aa4af73c5 proof of concept regarding licenses 11 years ago
Jordi Boggiano e68d455c5c Remove the http protocol from github-protocols, refs #1955 11 years ago
Jordi Boggiano 307c384294 Avoid throwing when checking for disk space, fixes #2039 11 years ago
Jordi Boggiano e64050e91d Fix output of diag command 11 years ago
Jordi Boggiano 3057949a2e Output error if the disk is full, fixes #1952 11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Pavel Savinov 831bd844bd Almost PHPDoc problems fixed 11 years ago
Jordi Boggiano 22c7d4119f install and create-project now default to dev mode (use --no-dev for production installs) 11 years ago
Tobias Munk c1cae8d838 updated events to use composer from Factory
PSR-0 autoloading is now handled correctly
11 years ago
Tobias Munk 27b3f338e9 added TODO 11 years ago
Tobias Munk 60f96d5135 fixed post-create-project-cmd event
event occurs after autoloader is generated and refreshed
11 years ago
Jordi Boggiano f0327caaa1 Cleanups 11 years ago
Jordi Boggiano 4b22d7582a Merge remote-tracking branch 'schmunk42/feature-create-project-events' 11 years ago
Tobias Munk 5586fa717b added author 11 years ago
Tobias Munk 337f817ba3 adjusted script event name 11 years ago
Tobias Munk c0280256bf code refactoring 11 years ago
Jordi Boggiano 1debe22412 Add HTTPS_PROXY_REQUEST_FULLURI to disable the request_fulluri only for https requests, fixes #1946, fixes #1839 11 years ago
Jordi Boggiano f6b7f0e29a Add --lock argument to the update command to make this hack explicit and official 11 years ago
Tobias Munk 0ac5165f04 updated script events
added new POST_ROOT_PACKGE_INSTALL and POST_CREATE_PROjECT event, triggered only in create-project
changed create-package parameter 'package' to be optional, command now looks in working directory for composer project if no param is given
11 years ago
Jordi Boggiano 1dd8bffce5 CS fixes 11 years ago
Francesc Rosàs 9aa0aba77c Extract email validation into a method 11 years ago
John Long 4d6910ece6 Remove unused variable $dialog from RequireCommand::configure
I traced the get and getHelperSet to Symfony's Console\Command and Console\Helper\HelperSet, and there was only stored variables being retrieved (no actions being done that'd require these functions to be called).
11 years ago
Jordi Boggiano bebe86262a Refactor self.version update to work on all link types, refs #1883 11 years ago
Jordi Boggiano 460ab04d4d Merge remote-tracking branch 'sminnee/create-project-self-version' 11 years ago
Phansys b992c29eb5 Added earlier permission checks in local filesystem before start download. 11 years ago
Sam Minnee d3437d6e76 NEW: Rewrite self.version in create-project (Fixes #1351)
When composer create-project is called and the resulting project is disconnected from the
parent repo, self.version references no longer work.  To fix that, this patch rewrites
self.version to the actual version number as part of 'composer create-project' execution
11 years ago
Jordi Boggiano 8a06e461e5 Fix a few bugs, fixes #1867 11 years ago
Jordi Boggiano 3b97e2e260 Add support for new verbosity levels, and initial debug output 11 years ago
Jordi Boggiano 8c197d2325 Fix CS and wording, remove lowercased env var, add env var to docs 11 years ago
Alexander Loutsenko c5bf4e7812 updated diagnostics to test fulluri proxy param handling 11 years ago
Fabien Potencier 91a2aa22fb Add a run-script command 11 years ago
Gábor Egyed 9358401eed resolve symbolic link in self-update command 11 years ago
Jordi Boggiano 6da31f7c2b Add handling of preferred-install config in create-project, fixes #1780 11 years ago
Jordi Boggiano e82cf6835e Allow show <package> <constraint> as well as a version 11 years ago
Smasty a1def50ae4 Fix diagnose command output 11 years ago
Jordi Boggiano 605cd3ddc3 Rename diag to diagnose, fix feedback 11 years ago
Jordi Boggiano 1060d015fb Add composer diag command to diagnose problems automatically 11 years ago
Jordi Boggiano ad69d15590 Fix self-update error handling, fixes #1738 11 years ago
Nils Adermann cfd7a50f0a Do not hardcode vendor dir exclusion on archive.
For one thing this wouldn't have worked for any custom installers anyway
which can write installed code to other places. This will now allow one
to use composer archive on a clean code checkout to build an archive as
we are used to. Or on one that had composer install run to build an
archive that can be used for deployment which includes the vendors.
11 years ago
Nils Adermann 870a87f6d6 Use null as default values rather than false
Also made archive() in the ArchiveCommand protected as it does not need
to be used from the outside. The ArchiveManager can be used instead.
11 years ago
Nils Adermann 14ee67bed4 Output packages in archive command using getPrettyString 11 years ago
Nils Adermann 838edd6e7a Fix class description of archive command 11 years ago
Nils Adermann 51135468f0 Clarify composer archive argument optionality 11 years ago
Nils Adermann 735b59c1d6 Skip the vendor dir when archiving the current project 11 years ago
Nils Adermann ba375b6867 Allow archiving the current project with composer archive 11 years ago
Nils Adermann 526f48ecb8 Implement a basic archive command
It allows creating archives with the archive manager given a package/version
pair.
11 years ago
Jordi Boggiano 7ae0dd2a2a Always install dev requirements when using the require command, fixes #1676 11 years ago
Jordi Boggiano be861f090a Remove filterPackages and add RepositoryInterface::search, refactor all commands to use new methods and remove all usage of the full package list for Composer repositories that support providers, fixes #1646 11 years ago
Miklós Márton 72a4146383 Scratch 'prefer-source'; 'preferred-install' is the bee's knees 11 years ago
Miklós Márton 9110c6413e Minor code reorg to reduce duplication 11 years ago
Miklós Márton 0d81ab7f46 Install/update now uses the new config variable 'prefer-source', fixes #553 11 years ago
Miklós Márton 0f8530ef56 Support for 'prefer-source' config setting, refs #553 11 years ago
Miklós Márton 40c9584746 Fixes #1653 11 years ago
Jordi Boggiano c95127b80e Merge pull request #1644 from Seldaek/newdevrequires
New require-dev handling
11 years ago
Miklós Márton 67e5e0588d Fixes #1347 (new license argument / dialog for init command) 11 years ago
Jordi Boggiano 542d10d8fd Remove all occurrences of getLocalDevRepository and getLocalRepositories calls 11 years ago
Jordi Boggiano caf26ac37c Enable dev mode by default in update command, add a --no-dev flag, fixes #1005 11 years ago
Jordi Boggiano f06c0cb580 Code reorgs and make bool values real booleans, refs #1637 11 years ago
Jordi Boggiano 8eb71f5478 Merge remote-tracking branch 'ricardclau/dirty-updates' 11 years ago
Ricard Clau 48ac383599 initial steps with new config value, implementation of discard changes for git and svn 12 years ago
Daniel González ed590de8dd typo
I see, that exist a typo error.
12 years ago
Jordi Boggiano 8d55b9cced Merge remote-tracking branch 'ronnylt/script-event-post-dump-autoload'
Conflicts:
	tests/Composer/Test/Autoload/AutoloadGeneratorTest.php
12 years ago
Jordi Boggiano 518253e150 Show proper repo information and not always the default ones 12 years ago
Jordi Boggiano 8ac4b649c3 Merge remote-tracking branch 'gerryvdm/master'
Conflicts:
	src/Composer/Command/ShowCommand.php
12 years ago
Jordi Boggiano 2e12993c9c Make selfupdate use ssl when possible 12 years ago
Jordi Boggiano d4fb7bd251 Substract 1char from the width to avoid blank lines in the output on windows 12 years ago
Sebastian Krebs b5c7d97e8c Pretty "show"-command 12 years ago
Jordi Boggiano 94e99b9c8b Update docs, config command and schema with all the config values 12 years ago
Jordi Boggiano 5165008be7 Merge remote-tracking branch 'pierredup/master' 12 years ago
Jordi Boggiano dd372e7635 Add explicit return 12 years ago
Gerry Vandermaesen 77290069a2 Added option to only show package names
Added the --name-only (-N) option to the show command to only list
package names (and exclude version and description).

This is useful to produce a list of package names to be parsed by
a shell script for example (bash completion comes to mind).
12 years ago
Gerry Vandermaesen 2552f4c65e Added option to only show available packages
Added the --available (-a) option to the show command to only list
the available packages, similar to the --installed and --platform
options.

Additionally changed the output formatting when limiting the
package result to remove the hierarchy when only one type is being
showed. This facilitates parsing of a list of packages (for example
for shell scripting and completion).
12 years ago
Bilal Amarni ae9a001053 RequireCommand - check if composer.json is writable 12 years ago
Bilal Amarni 99e4173b3d RequireCommand - rollback if it fails (fixes #1469) 12 years ago
Jordi Boggiano a7c950cddd Add support for github-oauth in config command 12 years ago
Pierre du Plessis 91ca7d7493 Make use-include-path default to false 12 years ago
Pierre du Plessis 84b34b70e0 Add config option to set if the PHP include path should automatically be used when generating the autoloader 12 years ago
Igor Wiedler 24611ec919 Add newline because JsonManipulator does not expand {} 12 years ago
Igor Wiedler a48675005b Implicitly create composer.json in require command
This allows shorteninig install instructions if you do not want to use init
(because it is interactive) and you do not want to use create-project (there
is no skeleton, or you do not want to use a skeleton).
12 years ago
Ronny López e5cbf83185 Added post-autoload-dump script event. 12 years ago
Jordi Boggiano b51a4a7854 Improve depends output, fixes #1459 12 years ago
Jordi Boggiano 514a3cde77 CS fixes 12 years ago
Jordi Boggiano 4c35f54356 Simplify regex pattern 12 years ago
Grégoire Pineau fcac93b3f1 Fixed InitCommand::addVendorIgnore 12 years ago
Jordi Boggiano 247b02d077 Fix minimum-stability handling in InitCommand, fixes #1421 12 years ago
Galymzhan 47442b6e39 change parameter order to preserve BC 12 years ago
Galymzhan f59181d7d5 add support for --no-progress, fixes #621 12 years ago
Jordi Boggiano 9b2e3766c0 Show reference as well in show command overview 12 years ago
Jordi Boggiano e7f4768668 Only ask for gitignore if the current dir is a git repo, fixes composer/satis#44 12 years ago
Jordi Boggiano 8bbb358e1f Merge pull request #1380 from bamarni/depends-local
added a local option to the depends command
12 years ago
Bilal Amarni 4e02cbd49e added a local option to the depends command 12 years ago
Beau Simensen 8d1d060d66 Made getComposerFile static. 12 years ago
Igor Wiedler 423728440b Rename init --minimum-stability to --stability
This is consistent with create-project.
12 years ago
Jordi Boggiano 111c42b8fb Make config command list all values in the config (aggregated defaults + global [+ local]) 12 years ago
Jordi Boggiano 365058ee99 Fix CS 12 years ago
Jordi Boggiano d1956d9d24 Merge remote-tracking branch 'Unister/master' 12 years ago
Jordi Boggiano a8f74a0983 Allow notification from locked installs, fixes #1368, fixes #1372, fixes #1369 12 years ago
go.schmidt f748fb1953 fixed version output for show command 12 years ago
Jordi Boggiano dee9bcb9f1 Add --stability and support for package:version and package=version to create-project, fixes #957 12 years ago
Colin Frei e4b8fe85a1 Check --name value if it's passed in, as that's not validated anywhere 12 years ago
Colin Frei b4cf3d06fd Make sure suggested value conforms to allowed values
Regex for replacement from https://github.com/composer/packagist/blob/master/src/Packagist/WebBundle/Entity/Package.php#L191
12 years ago
Colin Frei 6c4bdd14cd require $name to be lowercase 12 years ago
Jordi Boggiano 0d506228d6 Allow the config command to read out values if no new value is provided 12 years ago
Jordi Boggiano ef68125b3b Fix config listing 12 years ago
Jordi Boggiano b05a554883 Add cache-files-ttl setting, and docs for the cache 12 years ago
Jordi Boggiano 6a9215012d Merge remote-tracking branch 'igorw/dep-manager-consistent-naming' 12 years ago
Igor Wiedler b250d63fd8 Uppercase first character of dump-autoload description 12 years ago
Igor Wiedler e7c7e2f70d Consistently describe composer as dep mgr as opposed to package mgr
Closes #1207.
12 years ago
Jordi Boggiano 85bbf99817 Fix deletion of vcs dirs, fixes #1260 12 years ago
Pascal Borreli 83fd3967f0 Fixed PHPDoc 12 years ago
Pascal Borreli 5eead93250 Fixed typos 12 years ago
Jordi Boggiano f3bfeb3608 Rename --optimize-autoloaders to --optimize-autoloader since there is just one 12 years ago
Sebastian Krebs 578a216343 Add shorthand '-o'-option for '--optimize-autoloaders' 12 years ago
Sebastian Krebs 86518a22d7 Allow autoloader optimization right from 'update' too 12 years ago
Sebastian Krebs d3aaeb21da Allow autoloader optimization right from 'install' 12 years ago
Jordi Boggiano c53729793b Make sure the global config file is only readable by the owner 12 years ago
Jordi Boggiano c7b26c8d82 Return 1 if installation of deps failed, fixes #936 12 years ago
Jordi Boggiano ba96f9f6b5 Clarify conditional 12 years ago
Jordi Boggiano c2d9fa43eb Merge remote-tracking branch 'fortrabbit/frbit-createprojectdist' 12 years ago
Ulrich Kautz 051118c500 Check for necessity of VCS cleanup when --prefer-dist is used (only project package, so far) 12 years ago
Jordi Boggiano fa89ef75e4 Remove unused use statements 12 years ago
Ulrich Kautz 4f4cbc17d9 Added "--prefer-dist" option to create-project command 12 years ago
Jordi Boggiano 503234451b Simplify ConfigCommand to use the JsonConfigSource 12 years ago
Jordi Boggiano ee0cd07468 CS fixes 12 years ago
Jordi Boggiano 852c369575 Improve error reporting on downloads and copies, refs #1228 12 years ago
Jordi Boggiano 8949d43dca Remove VCS info from the root dir only, fixes #1229 12 years ago
Jordi Boggiano 110044c3ea Fix up create-project command 12 years ago
Grégoire Pineau 1dd04cb715 Removed useless code 12 years ago
Grégoire Pineau 6f9c3427b6 Create-project command remove all VCS history
In fact, there are some issues with create-project command.
When people create project with composer, they do not think to
delete main .git folder. So they embed 3th history in theirs own
repository. (see
https://connect.sensiolabs.com/profile/jmoati/project/gitoliteadmin
for instance)

More over, people may not use git.
12 years ago
Christophe Coevoet c322476343 Fixed the help of the config command 12 years ago
Jordi Boggiano 59edd4e6d6 Show version in composer show --self 12 years ago
Ismael Ambrosi 18086aa5e7 Added option to display dev-required packages 12 years ago
Jordi Boggiano 4e3f4f24fc Try to figure out which editor is available on *nix 12 years ago
Jordi Boggiano a4e5f000d5 Only create the root file empty and error out on missing local files 12 years ago
Jordi Boggiano 5cb9a6ead7 Write in the json directly without reformatting the whole file - skip validation since that is not really the job of the config command 12 years ago
Jordi Boggiano 8403178ddb config --list should only list relevant sections 12 years ago
Jordi Boggiano 4086c24778 Do or do not, there is no try 12 years ago
Jordi Boggiano 17d8dfba1d Allow editing all config values 12 years ago
Jordi Boggiano 1b7906e82d Add --unset flag 12 years ago
Jordi Boggiano d00d7eef7f Use default editors if EDITOR is not set, improve windows compatibility 12 years ago
Jordi Boggiano 0615455087 Clean up syntax/docs & simplify some bits of code 12 years ago