alu
b7fa302b90
add ignore-platform-package-requirements for update/install commands.
10 years ago
Jordi Boggiano
73e9db5d99
Fix the problem at the source, refs #3322
10 years ago
Jordi Boggiano
5c42cc8c8c
Merge remote-tracking branch 'AydinHassan/hotfix/init-virtual-packages'
10 years ago
Jordi Boggiano
df7c8915fa
Skip notification about matches found in case we have an exact match, refs #3261
10 years ago
Jordi Boggiano
d4062a5594
Merge remote-tracking branch 'kayladnls/kayla'
10 years ago
Christophe Coevoet
4685b4bf49
Fixed the resetting of the json file on removal failures
...
Closes #3329
10 years ago
Jordi Boggiano
2e1373b339
Update require message and delete empty file at the end in case of failure, fixes #3260
10 years ago
Rafael Dohms
5ed01fb60d
Abandoned support in `show`
...
Executing `composer show` on an abandoned package displays the warnings for package status.
10 years ago
Jordi Boggiano
1e4229e22a
Adjust APC check, refs #264
10 years ago
Aydin
432cdbcb31
Allow to select virtual packages
10 years ago
DC*
c698aa3a2b
Fix missing validation on default value for author input
...
The default author value on the composer init command is not validated against `parseAuthorString` method and thus not being re-prompted, finally throwing an InvalidArgumentException when it tries to generate the composer.json file.
The changes forces the validation of both the entered author string or the default value.
10 years ago
Jordi Boggiano
391a5390f2
Typo fix, cheers @rdlowrey
10 years ago
frederik
d1d40502bf
ProcessExecutor::escape
10 years ago
frederik
7ae1430689
#3297 ProcessUtil class using ProcessUtil of Symfony Console
10 years ago
Jordi Boggiano
b7b0901f87
Allow using new code in the init command and avoid initializing the composer instance too early, refs #3096
10 years ago
Jordi Boggiano
cf75ec7763
Merge remote-tracking branch 'weaverryan/require-version-select'
10 years ago
Jordi Boggiano
2cb64c8a72
Merge pull request #3175 from Petah/clear-cache
...
Clear all the caches
10 years ago
Ryan Weaver
895e62e859
Refactoring selection of the "recommended" version (e.g ~1.2) and adding some tests
...
This also modifies the behavior slightly (from a recommendation by seldaek) to always
propose the minor version of the recommendation (e.g. ~1.2 instead of ~1.2.1).
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
26179cc4b4
[ #2492 ] Prefixed real versions with ~ when guessing the latest version
...
2.1.0 > ~2.1.0
v2.1.0 -> ~2.1.0
dev-master -> dev-master
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
Kayla Daniels
ec758d95b0
updated package variable in gathering requirements
10 years ago
Jordi Boggiano
a8adbfeb9f
Disallow overriding commands with scripts
10 years ago
David Neilsen
957f498419
Update clear cache command to be more verbose
10 years ago
David Neilsen
be5eae5852
Clear all the caches
10 years ago
Jordi Boggiano
4f5d979bee
ArchiveCommand improvements
10 years ago
Jordi Boggiano
cec1627acf
Add top level aliases for nonstandard scripts and allow parameter passing, refs #2516
10 years ago
Jordi Boggiano
d9d8d09fe1
Add support for local binaries in scripts, refs #2516
10 years ago
Jordi Boggiano
33cedda708
Merge remote-tracking branch 'MaxGfeller/run-script-enhancement'
10 years ago
Jordi Boggiano
b6ef95ecb8
Add support for opening multiple packages at once, refs #2445
10 years ago
Jordi Boggiano
22afc074a9
Add browse command to docs, add a -H flag and tweak fallback mechanism to maximize chances of opening something, refs #2445
10 years ago
Jordi Boggiano
e10bf5a172
Merge remote-tracking branch 'digitalkaoz/new_home_command'
...
Conflicts:
src/Composer/Console/Application.php
10 years ago
Jordi Boggiano
e3f32a79f3
Finalize and bring up to speed the remove command, refs #2479
10 years ago
Jordi Boggiano
70d9cad549
Merge remote-tracking branch 'pierredup/remove-command'
...
Conflicts:
src/Composer/Console/Application.php
10 years ago
Nils Adermann
ea6917c87a
Merge pull request #3034 from Petah/clear-cache
...
Add clear cache command.
10 years ago
Jordi Boggiano
e77435cd0c
Skip apc check for hhvm, fixes #3081
10 years ago
Maximilian Reichel
845ebdcfd4
alter command help to explain glob usage
...
hey there! using globs for whitelisting packages is (imo) a very useful feature worth being explained to the user ;)
10 years ago
Jordi Boggiano
ac497feaba
CS fixes
10 years ago
Jordi Boggiano
d97e00643f
Fix typo
10 years ago
Jordi Boggiano
e890d1bc59
Remove use of glob, fixes #3042
10 years ago
David Neilsen
7fe3426991
Clean up unused 'use' statements
10 years ago
David Neilsen
075c85dd48
Fix typo in src/Composer/Command/ClearCacheCommand.php
10 years ago
David Neilsen
421c9453a4
Add clear cache command.
10 years ago
Jordi Boggiano
56c5af8dc4
realpathGlob tweaks, refs #2932
10 years ago
Richard Quadling
443858dae7
Force all glob results to be realpath'd.
10 years ago
Jordi Boggiano
959cc4d63c
Add info about conf file loading to debug output
10 years ago
Stephan Hochdörfer
493ebbaacb
Fix to load the auth information before the root package gets installed.
10 years ago
Jordi Boggiano
90d1b6e08a
Rename basic-auth to http-basic, add docs/schema/config support, add local auth file support, add storage to auth.json, add store-auths config option, refs #1862
10 years ago
Jordi Boggiano
b6981d09e8
Fix handling of origin url in composer repository class
11 years ago
renatbilalov
ee142688e1
Corrected description of the option --optimize (-o)
11 years ago
Jérôme Macias
4f417e3985
Add --no-check-all option to composer validate command
11 years ago
Jordi Boggiano
3251f9f1aa
Only check phar validity if phar.readonly is false
11 years ago
Jordi Boggiano
b437c1cc05
Support github auth directly in the RemoteFilesystem class
11 years ago
Nils Adermann
1e4df0690a
Shorter boolean conversion
11 years ago
Nils Adermann
e93eeca13a
Merge pull request #2894 from naderman/update-no-dev
...
Add an --update-no-dev option to the require command
11 years ago
Nils Adermann
a2b227740a
Add an --update-no-dev option to the require command
11 years ago
Nils Adermann
465f0e3761
When requiring a package remove it from require-dev and vice versa
11 years ago
Pierre du Plessis
244e865a35
Fix typo
11 years ago
drscre
b75beda99c
Bug in RunScriptCommand::execute()
...
When checking for known command in commandEvents and scriptEvent '&&' should be used instead of '||'
11 years ago
Jordi Boggiano
e221757197
Update code to latest EventDispatcher, refs #2722
11 years ago
Sandy Pleyte
b9efdd8348
Separated the scripts events in 2 arrays because they need to be called by different dispatchers.
11 years ago
Sandy Pleyte
fd4fb80d1e
Fix for #2557 , added missing run-scripts
11 years ago
Jordi Boggiano
aa9c257f0e
Merge remote-tracking branch 'alebiavati/list-paths'
11 years ago
Alessandro Biavati
c5d1a3575c
Added `path` flag to show install path for installed packages
11 years ago
Jordi Boggiano
790a25c348
Adjust dump command, add another test, update docs, refs #1344
11 years ago
Bilal Amarni
db91454a13
added an autoload-dev section
11 years ago
Sandy Pleyte
ee62ec60f0
Remove old comment
11 years ago
Sandy Pleyte
ab8f67e8cf
Always use rootPackage config
11 years ago
Sandy Pleyte
9af5eaa574
Refactored the code with the switch statement.
11 years ago
Sandy Pleyte
bc7c93ae85
Fix for #1966 , use the preferred-install from the rootPackage config to install the dependencies.
11 years ago
Jordi Boggiano
245461d8ed
Merge pull request #2682 from gena01/ssh-support-in-github-protocols
...
Adding ssh protocol support to "github-protocols".
11 years ago
Steve Buzonas
3ad47b5d2c
add allowing require to update dep chain, fixes composer/composer#2668
11 years ago
Gennady Feldman
ac78eaa027
Adding ssh protocol support to github-protocols.
11 years ago
Jordi Boggiano
a90a05a059
Detect composer install foo/bar misuse and suggest alt
11 years ago
Robert Schönthal
2b5a9aee6c
some tiny refactorings
11 years ago
Robert Schönthal
3a1edd3776
rename command
11 years ago
Robert Schönthal
e36d7f23ef
escape shell args
11 years ago
Robert Schönthal
325c57f30c
tiny refactorings
11 years ago
Robert Schönthal
25d062ccb4
some minor refactorings
11 years ago
Robert Schönthal
9a87aa1aaf
added "home" command like the npm one, opens a package in your browser
11 years ago
Nils Adermann
0238aaf5ac
Merge pull request #2629 from moranjk/master
...
Implemented Pre/Post Archive Script Events
11 years ago
Robert Boloc
5e5311a224
use optimize-autoloader config param in update and install commands
11 years ago
Robert Boloc
8a221854b1
changed name of the option to optimize-autoloader
11 years ago
Robert Boloc
f67f04adfb
added config option to optimize the autoloader always
11 years ago
Markus Staab
464fa1dedb
added a indicator in the info-message on --optimize
11 years ago
James Moran
ee7961a0f3
Implemented Pre/Post Archive Script Events
...
The script events `pre-archive-cmd` and `post-archive-cmd` can be used
to perform any tasks necessary when archiving the composer project.
This functionality can be used to run unit test or and other build
process before archiving, and can be used to distribute the archive
when completed
11 years ago
Eymen Gunay
ad51db7b57
Fixed missing close tags
11 years ago
Gordon Franke
202701c391
Escape env value before passing it to system call
11 years ago
Jordi Boggiano
7c1042eef5
Detect color.ui always git setting as bad, fixes #2544
11 years ago
Jordi Boggiano
b23742e30c
Merge remote-tracking branch 'donquixote/feature/psr4-complete'
11 years ago
Jordi Boggiano
a5c6319d46
Fix uninitialized var, fixes #2539
11 years ago
Jordi Boggiano
6ead35f189
Add version arg, docs for --rollback and reorganize the code, refs #2522
11 years ago
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