1
0
Fork 0
Commit Graph

283 Commits (4f2e2ec4fc9e703278a5355226ee1c7c67972c49)

Author SHA1 Message Date
Jordi Boggiano d1425ec008 Merge branch '1.1' 2016-05-31 19:51:30 +01:00
Jordi Boggiano 43273c4366 Fix plugin bootstrapping to ignore SSL Exceptions, fixes #5388 2016-05-31 19:19:14 +01:00
Jordi Boggiano 57ae6d97b6 Merge branch '1.1' 2016-05-17 12:06:36 +01:00
Metod 360cb4ac2a Fix for a fatal error when system temp dir is not available 2016-05-17 12:06:27 +01:00
Jordi Boggiano a4e8d858ba Merge branch '1.1' 2016-05-16 18:50:37 +01:00
Jordi Boggiano 206c3c52e0 Remove the error handler at the end of a run, fixes #5340 2016-05-16 18:49:38 +01:00
Jordi Boggiano 827d52cccf Merge branch '1.1' 2016-05-05 23:21:27 +01:00
Jordi Boggiano 71cbd8f7e6 Switch dir before loading plugins to make sure the correct composer.json is initialized, fixes #5290 2016-05-05 23:21:03 +01:00
Jordi Boggiano b8974a3e13 Merge branch '1.1' 2016-05-05 14:10:14 +01:00
Jordi Boggiano 591cbcee12 Avoiding defining plugin commands using the local project plugins, refs #5277 2016-05-05 14:10:06 +01:00
Bilal Amarni 92207da83a add isProxyCommand() to BaseCommand 2016-05-05 13:56:44 +01:00
Jordi Boggiano aaf2c06e7b Add ScriptExecutionException for CLI scripts and avoid showing the full exception to users, fixes #5281 2016-05-05 13:26:26 +01:00
Jordi Boggiano 2bcd723b54 Fix regression in global command, fixes #5266 2016-04-29 15:31:32 +01:00
Jordi Boggiano ba909d8795 Avoid duplicate commands, and pass plugin to ctor args for capabilities, refs #3377 2016-04-28 21:12:26 +01:00
Jordi Boggiano 090295dbcb Adjust the CommandProvider to use plugin capabilities and test actual command creation, refs #3377 2016-04-28 20:37:54 +01:00
Jordi Boggiano a9df4acd7d Merge remote-tracking branch 'jderusse/plugin-with-commands' 2016-04-28 20:11:33 +01:00
Jordi Boggiano 35fbf9bc14 Merge branch '1.0' 2016-04-28 19:54:11 +01:00
Derek Marcotte 3a03b51ae3 fix command injection from the environment when run as root 2016-04-25 15:08:09 -04:00
Jordi Boggiano e7069dd5e8 Tweak colors in the output, make sure we load the proper version according to stability flags and add outdated command, refs #5028 2016-04-22 21:54:04 +01:00
Jordi Boggiano 89cfde051d Convert exception to a warning, refs #5205 2016-04-19 11:00:39 +01:00
Jordi Boggiano fa5c73f0d8 Merge remote-tracking branch 'curry684/issue-5186' 2016-04-19 10:57:45 +01:00
Niels Keurentjes 43eb471ec2 Code cleanup and ensure checked file is unique. 2016-04-19 01:39:32 +02:00
Jordi Boggiano 118d8fb52f Output composer/php/os version info in debug mode 2016-04-18 22:09:07 +01:00
Niels Keurentjes 28e9193e9e Check temp folder usability before runtime to prevent weird errors. 2016-04-16 21:01:10 +02:00
Jordi Boggiano 134ce134a2 Rename COMPOSER_DISABLE_ROOT_WARN to COMPOSER_ALLOW_SUPERUSER, refs #5119 2016-04-02 14:25:21 +01:00
Jordi Boggiano cb8587cdad Add COMPOSER_DISABLE_ROOT_WARN env var and skip root warning on self-update command as well, refs #5119 2016-04-01 12:31:07 +01:00
Jordi Boggiano dfd22c641d Bulletproof sudo clobbering, refs #5122 2016-04-01 01:24:31 +01:00
Niels Keurentjes a0070e724b Clobber any existing sudo leases before execution to prevent malicious code gaining root privileges. 2016-03-28 13:10:43 +02:00
Niels Keurentjes 557a55fbe5 Clobber sudo credentials to prevent careless privilege escalations. 2016-03-27 23:42:39 +02:00
Jordi Boggiano f4f66be6f6 Merge remote-tracking branch 'dshafik/add-exec-command' 2016-02-25 12:01:33 +00:00
Niels Keurentjes 75bb0d9b10 Implemented Prohibits and Depends correctly now. 2016-02-20 01:39:24 +01:00
Davey Shafik 43551bc537 Add `composer exec` command 2016-02-05 20:22:54 -05:00
Niels Keurentjes 0dab63e050 Unified all Windows tests throughout the code. 2016-02-03 22:39:16 +01:00
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 2016-01-29 10:14:12 +00:00
Jordi Boggiano 1818b95149 CS fixes 2016-01-26 13:07:18 +00:00
Niels Keurentjes 18cd4f966b Added silencer utility to more gracefully handle error suppression without hiding errors or worse. Fixes #4203, #4683 2016-01-25 23:37:54 +01:00
Jordi Boggiano 2491679ba3 Remove override of renderException, refs #4774 2016-01-16 11:24:04 +00:00
Jordi Boggiano b056d9ae42 Avoid double xdebug warning with global command 2016-01-10 13:02:20 +00:00
Jordi Boggiano 7a06615bf0 Add env var to disable xdebug warnings, refs #4622 2015-11-21 20:06:31 +00:00
Jordi Boggiano 966a982738 CS fixes 2015-11-21 19:28:10 +00:00
Jordi Boggiano cf6cd83335 Use writeError for xdebug warning and fix running test suite with xdebug 2015-11-19 17:37:32 +00:00
Jordi Boggiano 4071b09091 Merge pull request #4615 from staabm/xdebugwarn
add a warning when xdebug is loaded while running composer commands
2015-11-19 14:47:52 +00:00
Markus Staab a59f0a7ca8 add a warning when xdebug is loaded while running composer commands 2015-11-19 13:57:57 +01:00
Markus Staab 9f5efc3091 added a troubleshooting link in case of out-of-memory errors 2015-11-17 16:25:33 +01:00
Jordi Boggiano 2d24ed8e74 Improve error reporting 2015-11-03 20:37:11 +00:00
Jordi Boggiano ce08582671 Fix CS 2015-09-28 10:53:24 +01:00
Olivier Laviale cc522c20bb Optimized this->getIO() 2015-09-14 14:30:26 +02:00
Jordi Boggiano 5ba41514a9 Merge remote-tracking branch 'alcohol/add-suggests-command' 2015-07-04 11:58:58 +01:00
Jordi Boggiano 6a64041055 CS fixes 2015-06-30 15:38:32 +01:00
Gusakov Nikita f1af16984e [Command] Add suggests command 2015-06-23 21:04:20 +02:00
Jordi Boggiano 89540c5690 Support bg colors and more clearing values in html output formatter 2015-06-12 17:23:18 +01:00
Jordi Boggiano 29dbc3835f Fix html output formatter to work with latest symfony console 2015-06-12 17:10:19 +01:00
Jordi Boggiano 1753c275ff Handle deprecation notices softer 2015-05-31 12:26:57 +01:00
Possum 29ca21f30e PHP version checks tweaking 2015-05-05 20:18:24 +02:00
Jordi Boggiano ebffb3c179 Move improvements towards reproducible builds, refs #3927 2015-05-01 11:54:55 +01:00
Rob Bast 00fcd63c04 Remove redundant helper 2015-04-30 12:17:56 +02:00
Jérémy Derussé 86e0b847be Allow plugins to register commands 2015-02-26 09:14:25 +01:00
Edward Hartwell Goose bcb5e479b7 Fix reference to getIO as per #3777 2015-02-25 18:41:13 +00:00
Rob Bast cb336a5416 Implement writeError throughout Composer 2015-02-25 11:00:35 +01:00
Nimit Kalra b2b9688c92 Conform with Symfony Coding Standards
According to Symfony Coding Standards, a single space must be added around binary operators excluding the concatenation operator.

"Add a single space around binary operators (==, &&, ...), with the exception of the concatenation (.) operator" (http://symfony.com/doc/current/contributing/code/standards.html)
2015-02-18 15:06:36 -06:00
Jordi Boggiano 0c87048fed Also detect full temp dir, fixes #3559 2014-12-15 20:22:08 +00:00
Jordi Boggiano 0627d846a5 PluginManager refactoring, fixes #3550 2014-12-13 18:54:42 +00:00
Jordi Boggiano aec1af4e11 Point users at troubleshooting if they get known exceptions 2014-12-13 11:47:22 +00:00
Jordi Boggiano fc3c7838b2 CS fixes 2014-12-07 13:54:29 +00:00
Jordi Boggiano d249d0c121 Reset composer to load the new requirements, fixes #3511 2014-12-05 11:58:21 +00:00
Craig Duncan b84c3f0268 Don't display the dev warning time when running self-update
Use the Application::find() method to resolve the command name, as Application::getCommandName() only returns whatever was entered as the first argument.
If the user only entered enough of the command to be unambiguous (eg self-up) then the warning would still show
By calling Application::find() we ensure that if we are going to run the self-update command then we will not show the warning, no matter what the user entered
2014-11-20 18:21:14 +00:00
Jordi Boggiano 373c688f8c Merge pull request #3362 from phansys/composer_version
Added branch-alias to version output when it is aliasing dev-master
2014-10-17 20:28:38 +01:00
Jordi Boggiano 94926218e8 CS fixes 2014-10-17 18:57:27 +01:00
Javier Spagnoletti e36f2ea618 Added branch-alias for dev-master to --version|-V output when current version is actually a revision (a non release/git tag).
This replies the work done in #3352 respecting other uses of ```Composer::VERSION``` constant.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| Doc PR        | none
2014-10-16 22:13:17 -03:00
Jordi Boggiano 382b6c64d5 Output CWD change, refs #3332 2014-10-07 10:17:48 +01:00
Jordi Boggiano a8adbfeb9f Disallow overriding commands with scripts 2014-09-05 17:28:50 +01:00
Christophe Coevoet e1a3df3dbf Fixed the registration of commands with invalid JSON file
When the JSON file in the current folder is invalid, the registration of custom commands should be ignored rather than breaking the usage of Composer entirely.
Closes #3165
2014-09-05 15:17:51 +02:00
Jordi Boggiano ff844b3e14 Load scripts without preloading a composer instance to avoid side-effects, fixes #3155 2014-07-28 12:59:19 +02:00
Jordi Boggiano 0ce0cf42e8 Merge remote-tracking branch 'francoispluchino/fix-phpdoc'
Conflicts:
	src/Composer/EventDispatcher/EventDispatcher.php
2014-07-23 19:19:39 +02:00
Jordi Boggiano 67a016878e Switch working dir before loading composer, fixes #3146 2014-07-23 12:20:18 +02:00
Jordi Boggiano cec1627acf Add top level aliases for nonstandard scripts and allow parameter passing, refs #2516 2014-07-20 21:55:24 +02:00
Jordi Boggiano e10bf5a172 Merge remote-tracking branch 'digitalkaoz/new_home_command'
Conflicts:
	src/Composer/Console/Application.php
2014-07-20 17:25:50 +02:00
Jordi Boggiano 70d9cad549 Merge remote-tracking branch 'pierredup/remove-command'
Conflicts:
	src/Composer/Console/Application.php
2014-07-19 21:47:28 +02:00
François Pluchino 8b5c00bff0 Fix phpdoc 2014-07-16 15:17:38 +02:00
David Neilsen 421c9453a4 Add clear cache command. 2014-06-04 19:32:28 +12:00
jakoch 8fd82784b2 disable these xdebug settings only, if xdebug is loaded 2014-04-30 11:29:52 +02:00
Robert Schönthal 9a87aa1aaf added "home" command like the npm one, opens a package in your browser 2014-01-31 22:01:32 +01:00
Pierre du Plessis 5267622bba Add remove command to remove a package from the list of current installed packages 2013-12-12 21:07:27 +02:00
Jordi Boggiano 5b96caf8ce Add version release date to -V output, fixes #2267 2013-09-16 14:08:43 +02:00
Nils Adermann 15ac7be6f1 Fix disabling plugins which has to happen in the factory now 2013-08-30 12:51:41 +02:00
Jordi Boggiano 7311bc77e6 Add global command to be able to require/install/update global packages, fixes #1813, fixes #55 2013-08-17 02:59:17 +02:00
Jordi Boggiano b0e72f0910 Merge remote-tracking branch 'trompette/license-tools' 2013-08-12 01:24:57 +02:00
bronze1man 9a1f4e4458 fix some files mode bug 755->644 2013-08-06 18:07:26 +08:00
Benoît Merlet 4aa4af73c5 proof of concept regarding licenses 2013-07-10 17:00:18 +02:00
Jordi Boggiano 307c384294 Avoid throwing when checking for disk space, fixes #2039 2013-06-26 13:56:52 +02:00
Jordi Boggiano eb0f35377e Fix variable masking 2013-06-18 14:33:16 +02:00
Jordi Boggiano 3057949a2e Output error if the disk is full, fixes #1952 2013-06-18 14:02:12 +02:00
Jordi Boggiano 8d0b7f278e CS fixes 2013-06-13 13:28:24 +02:00
Pavel Savinov 831bd844bd Almost PHPDoc problems fixed 2013-06-13 11:05:44 +11:00
Pascal Borreli 390ac65466 Don't throw an update warning when using selfupdate alias 2013-05-06 18:53:43 +02:00
Fabien Potencier 91a2aa22fb Add a run-script command 2013-04-15 15:45:32 +02:00
Jordi Boggiano 605cd3ddc3 Rename diag to diagnose, fix feedback 2013-04-04 15:46:08 +02:00
Jordi Boggiano 1060d015fb Add composer diag command to diagnose problems automatically 2013-04-04 00:43:08 +02:00
Jordi Boggiano 83ea90296e Add COMPOSER_NO_INTERACTION env var to allow travis & others to easily make sure every composer run is non-interactive 2013-04-02 10:34:49 +02:00
Nils Adermann 526f48ecb8 Implement a basic archive command
It allows creating archives with the archive manager given a package/version
pair.
2013-03-28 12:49:52 +01:00
Jordi Boggiano 979db8539d Do not chdir unless necessary 2013-03-15 15:21:22 +01:00
Jordi Boggiano b474944155 Add more output to the profiled runs, refs #1659 2013-03-05 15:21:54 +01:00
Shane Auckland a783727227 adding use statement 2013-02-25 15:55:37 +00:00
Shane Auckland 0ba335730e Specific schema validation failure messages (fixes issue #1616) 2013-02-25 15:34:31 +00:00
Jordi Boggiano 514a3cde77 CS fixes 2013-01-05 20:01:58 +01:00
Jordi Boggiano 1a98d9f705 Only inject logo in help page and not in the app name 2013-01-05 18:33:29 +01:00
Romain Neutron ce4a015579 Add a composer ascii-art logo 2012-12-28 20:24:21 +01:00
Jordi Boggiano e5ecad7eeb Enforce a UTC timezone if none is set to prevent misconfigured php from blowing up, refs #923 2012-11-20 14:45:40 +01:00
Jordi Boggiano 87e335aa1b Update outdated build message, fixes #1305 2012-11-10 21:37:18 +01:00
Jordi Boggiano e7e04689f1 Add HtmlOutputFormatter 2012-11-05 13:55:23 +01:00
Jordi Boggiano aecf4ffe91 Move creation of custom styles to the factory 2012-11-05 13:51:43 +01:00
Jordi Boggiano ee0cd07468 CS fixes 2012-10-18 10:35:06 +02:00
Joshua Estes 6386921f99 deleted the repository, added a config command that current will just list the config for either file and open vim to edit the file 2012-10-02 10:42:48 -05:00
Joshua Estes 7be31e12ec add a repository in either the global config or the local composer.json file 2012-10-01 11:07:53 -05:00
Joshua Estes ec71674826 added empty configuration command and updated the application class to pull it in for display 2012-10-01 09:19:20 -05:00
Jordi Boggiano 0929f25945 Fix typo 2012-09-16 18:19:46 +02:00
Alexander M. Turek 6f317b7a6b Switch working directory according to --working-dir option. 2012-09-15 12:29:56 +02:00
Alexander M. Turek 4ac678454d Added --working-dir to definition. 2012-09-15 11:36:57 +02:00
Jordi Boggiano 573aad8801 Check if ini_set exists before calling it 2012-08-24 16:38:01 +02:00
Jordi Boggiano 456b35ae72 Disable xdebug scream/show_exception_trace, fixes #989 2012-08-24 10:57:38 +02:00
Jordi Boggiano fbaf6bf5f7 Add --profile flag to display very basic profiling metrics 2012-08-24 01:32:29 +02:00
Jordi Boggiano 5b4c6f6296 Merge remote-tracking branch 'fixe/status-command'
Conflicts:
	src/Composer/Console/Application.php
2012-08-18 13:45:36 +02:00
Tiago Ribeiro aba2ab2212 Added status command to display local changes to packages 2012-07-29 17:13:26 +01:00
Robert Schönthal e21ce860df fixed issue #627 (autoload dump command) 2012-07-02 09:48:25 +02:00
Sergey Linnik 2448c5a7c2 don't display dev expiration time warning when running self-update command 2012-06-24 14:18:07 +04:00
Jordi Boggiano 66e9dcddf4 CS fixes 2012-06-23 11:58:18 +02:00
Jordi Boggiano b566ba77ac Fix behavior broken by #665 2012-06-23 11:47:53 +02:00
Jordi Boggiano de449aa144 Merge remote-tracking branch 'PSeiffert/master'
Conflicts:
	src/Composer/Factory.php
	src/Composer/Repository/RepositoryManager.php
2012-06-23 11:42:13 +02:00
Jordi Boggiano 9841b6f36e Extend proper method to register commands at startup 2012-05-28 00:10:02 +02:00
Jordi Boggiano b33496c853 Merge remote-tracking branch 'jeremyFreeAgent/master'
Conflicts:
	doc/03-cli.md
2012-05-26 12:40:36 +02:00
Paul Seiffert b3a5ca93c7 Added comments -> IDE friendliness 2012-05-08 23:26:01 +02:00
Jordi Boggiano d60188903d Add warning for PHP <5.3.2 users that didn't use the installer 2012-04-29 16:07:47 +02:00
Jérémy Romey 260d7d434f Add a command for adding package to composer.json
Updated doc for require command
2012-04-03 13:49:42 +02:00
Luis Cordova 1aa9d9af43 removed finder use clause as it is not used 2012-03-23 11:28:40 -05:00
Jordi Boggiano 51447074c2 Fix wording & co 2012-03-18 21:16:36 +01:00
Jordi Boggiano a5c2c6c07e Merge remote-tracking branch 'biozshock/issue225' 2012-03-18 21:09:37 +01:00
Benjamin Eberlei db64917a83 Renamed install-project to create-project to differentiate from just "install". 2012-02-27 20:25:36 +01:00
Benjamin Eberlei bbf745f3e6 Add command to install a package as a new project into a non-existant directory. This fetches the given package from packagist or a different packagist-source and installs it into a given path. 2012-02-27 20:25:36 +01:00
Justin Rainbow 7a0a1788e3 Moved DialogHelper into the base Application 2012-02-11 17:13:38 -07:00
Justin Rainbow 34bbfb70d2 Initial version of InitCommand
This command allows a user to create a basic composer.json
definition easily.  The idea is to create a command similar
to the `npm init` command.

This version only has `name` and `description` support.
Additional fields will be added such as `require`, `authors`,
`version`, etc.
2012-02-11 17:13:37 -07:00
Beau Simensen 030b81b199 DebugPackagesCommand has been removed. 2012-02-09 08:14:06 -08:00
Jordi Boggiano 93baa38d5c Allow show command to work without a composer.json 2012-02-08 10:24:36 +01:00
Artem Lopata 7d994b5de4 Added ErrorHandler for handling E_NOTICE, E_WARNING, E_ERROR 2012-01-27 10:37:45 +02:00
Jordi Boggiano 434c9ecdeb Cleanups of IOInterface 2012-01-17 23:08:12 +01:00
François Pluchino 8053878b6a Merge branch 'master'
Conflicts:
	src/Composer/Console/Application.php
2012-01-17 17:56:06 +01:00
François Pluchino a5fb4abb36 Fix some improvements 2012-01-17 10:29:54 +01:00
Igor Wiedler 81f9adc596 Refactor Application::bootstrapComposer into a factory class (split from #178) 2012-01-17 10:00:53 +01:00
François Pluchino 0f9dcc9618 Remplace all echo with writeln method of IO 2012-01-16 20:44:06 +01:00
François Pluchino 7888ec5313 Add Authentification in FileDownloader 2012-01-16 20:09:32 +01:00
François Pluchino a10f92aafe Convert Wrapper class to ConsoleIO class 2012-01-16 14:14:15 +01:00