Niels Keurentjes
b1de2c52a3
Add --no-plugins option to remove/require
9 years ago
hanov.ruslan
b298b9e8c6
Added sort-packages into config
9 years ago
Jordi Boggiano
8cd6598d8d
Simplify php version fetching
9 years ago
Jordi Boggiano
507415e404
Make VersionSelector prefer stable by default and allow specifying a PHP version that must be matched, fixes #4318
9 years ago
Rob Bast
a1427d7fd6
replace all occurences in code and comments
9 years ago
Jordi Boggiano
1e8d7255b7
Fix access to undefined var, refs #4422
9 years ago
Jordi Boggiano
8913ac2fff
Merge pull request #4362 from bd808/classmap-authoritative-cli
...
Add cli argument for classmap-authoritative
9 years ago
Olivier Laviale
cc522c20bb
Optimized this->getIO()
9 years ago
Bryan Davis
71cb587611
Add autoloader cli options to `require` and `remove`
...
Update the `composer require` and `composer remove` commands to support
the `--optimize-autoloader` and `--classmap-authoritative` cli options
and associated configuration settings. All cli entry points that invoke
`Installer::run()` or `AutoloadGenerator::dump()` now have consistent
support for these autoloader optimization flags.
9 years ago
vlakoff
d5ab072ec1
Optimize check for empty file
9 years ago
vlakoff
3a68534d20
Fix parser error if composer.json existing but empty
9 years ago
Rob Bast
cb336a5416
Implement writeError throughout Composer
9 years ago
Carsten Brandt
7e3f4805c0
Updated the documentation of the require command
...
It did not mention that it is possible to leave out the version constraint.
10 years ago
Andreas Möller
6ddd8d4ec7
Enhancement: Add sort-packages option which allows sorting of packages
10 years ago
Jordi Boggiano
d249d0c121
Reset composer to load the new requirements, fixes #3511
10 years ago
Nils Adermann
859c8f5bb3
Use the repositories configured in composer.json for the require command
10 years ago
Olivier Laurendeau
b6b3cf3a49
Add ignore-platform-reqs option to require command
10 years ago
Jordi Boggiano
94926218e8
CS fixes
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
Nils Adermann
1e4df0690a
Shorter boolean conversion
10 years ago
Nils Adermann
e93eeca13a
Merge pull request #2894 from naderman/update-no-dev
...
Add an --update-no-dev option to the require command
10 years ago
Nils Adermann
a2b227740a
Add an --update-no-dev option to the require command
10 years ago
Nils Adermann
465f0e3761
When requiring a package remove it from require-dev and vice versa
10 years ago
Steve Buzonas
3ad47b5d2c
add allowing require to update dep chain, fixes composer/composer#2668
11 years ago
Jordi Boggiano
e126c92525
Fix exit codes, cc @tyrael
11 years ago
Nils Adermann
d00ca4bcdb
Add a Command event triggered by all comands which load plugins
11 years ago
Jordi Boggiano
51ea1f03f9
Validate constraints in require command, fixes #2197
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
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
Jordi Boggiano
dd372e7635
Add explicit return
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
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
Galymzhan
f59181d7d5
add support for --no-progress, fixes #621
12 years ago
Beau Simensen
8d1d060d66
Made getComposerFile static.
12 years ago
Arnaud Le Blanc
0119e80c18
added --prefer-dist option to require command
12 years ago
Jordi Boggiano
0d31e4c567
Add --no-update flag to require
12 years ago
Jordi Boggiano
31330a739f
Fix CS
12 years ago
Jordi Boggiano
8ffe3c2e26
Cosmetic fixes
12 years ago
Jordi Boggiano
42c501aaa4
Force the installation of the newly required packages in require command
12 years ago
Jordi Boggiano
27f8019dbd
Refactor init & require commands
12 years ago
Jérémy Romey
260d7d434f
Add a command for adding package to composer.json
...
Updated doc for require command
12 years ago