Alexander M. Turek
146aa4938f
Command::execute() should always return an integer.
5 years ago
Nikita Konstantinov
e3b6c67a44
Provide `--fixed` option for the `require` command, fixes #8303
5 years ago
Jordi Boggiano
6c4357a7ed
Merge branch 'master' into 2.0
5 years ago
Jordi Boggiano
3f5e4f0399
Add support for defining a {"packagist.org":false} repo in composer init, fixes #8210
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
d96d046209
Fix require of platform packages with --ignore-platform-reqs, fixes #8012
5 years ago
Jordi Boggiano
b89720b52a
Merge branch 'master' into 2.0
6 years ago
Jordi Boggiano
a9aaa25d4c
Fix compat with Symfony Process 4.2, fixes #7923
6 years ago
Jordi Boggiano
411dd51f20
Merge branch 'master' into 2.0
6 years ago
Jordi Boggiano
b3cbfea36e
Merge branch '1.7'
6 years ago
Jordi Boggiano
acdf8f83f1
Bypass version check for explicitly versioned packages in require command when --no-update is given, fixes #7800
6 years ago
Jordi Boggiano
6e6fb844dd
Avoid validating package name if it has a newline at the end
6 years ago
Shalvah
42e88ac27a
Add interactive option to install dependencies after running init command ( #7521 )
...
* Add interactive option to install dependencies after running init command
* Only ask to install dependencies when dependencies where defined
6 years ago
Nils Adermann
5c491ecc9b
Merge pull request #7625 from naderman/repository-set
...
Separate RepositorySet from Package Pool, load only metadata of packages directly required
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
Gabriel Caruso
71c8735e11
Use combined assignment operators
6 years ago
Jordi Boggiano
ff59bbdab0
CS fixer
6 years ago
Jordi Boggiano
c5fa3bdde0
Migrate to repo.packagist.org for package metadata
6 years ago
Jordi Boggiano
2bd34c0534
Merge branch '1.6'
6 years ago
Jordi Boggiano
5460e5d86f
Respect current PHP version when figuring out requirements for init command, fixes #7257
6 years ago
Jordi Boggiano
9f34ee9892
Merge branch '1.6'
7 years ago
Jordi Boggiano
a61a8d78b1
Fix warning for packages not existing while they exist but not at the required stability, fixes #7044
7 years ago
Gabriel Caruso
3d262bd637
Fixes from PHPStan level 0
...
More fixes from PHPStan level 0
7 years ago
Jordi Boggiano
ab8437ce06
Merge remote-tracking branch 'swumao/feature-6892'
7 years ago
Jordi Boggiano
8a50345df7
Follow ignore-platform-reqs when checking for package requirements, fixes #6859
7 years ago
闫兴茂
e4bb306dfc
Fix for CI
7 years ago
闫兴茂
1c0a494c72
Update findBestVersionForPackage method to support return package name
7 years ago
Jordi Boggiano
c8aea719b1
CS fixes
7 years ago
Jordi Boggiano
3e1b0c88d7
Merge branch '1.5'
7 years ago
Jordi Boggiano
00f6c0a44a
Fix issue when requiring multiple packages once without and once with explicit version, fixes #6859
7 years ago
Jordi Boggiano
224d272a0e
Merge branch '1.5'
7 years ago
Jordi Boggiano
3976d9f242
Fix require command picking of specific versions, fixes #6859
7 years ago
Jordi Boggiano
755482ddb1
Merge branch '1.5'
7 years ago
Jordi Boggiano
a928ffa4ee
Fix require command when specifying non-stable versions, fixes #6859
7 years ago
Jordi Boggiano
e5d07fde6b
Merge pull request #6743 from zachflower/feature/init_defaults
...
Composer init default values
7 years ago
Jordi Boggiano
fedef55362
Merge remote-tracking branch 'arjank/abandoned_package_warning'
7 years ago
Jordi Boggiano
0b3bc4ccb9
Merge branch '1.5'
7 years ago
Jordi Boggiano
a691a179e5
Merge remote-tracking branch 'naderman/improve-not-found-error' into 1.5
7 years ago
Jordi Boggiano
b4df2c9517
Avoid reverting the composer.json in case of a composer require/remove failure that is unrelated to the Solver
...
Fixes #6821 and adds a different fix to #3464 which is getting reverted
7 years ago
Zachary Flower
a59f7399bf
Use environment variables to define default values instead
7 years ago
Nils Adermann
685bc08c0a
Improve the error on init/require if a package could not be found
7 years ago
Jordi Boggiano
7c7c91344a
Avoid some error paths, refs #6678
7 years ago
Zachary Flower
9ed0a2d35f
Use default configs, where applicable, in init
7 years ago
Arjan
a03efa2fda
Composer init - abandoned package warning
...
Added warning for abandoned packages in case more than one package is found for require / require-dev in composer init.
7 years ago
Michal Lulco
c409f96353
Removed unused uses
7 years ago
Michal Lulco
1efe02f2e1
Search similar package when package could not be found
7 years ago
Michal Lulco
84fed794d7
Trying to find package with similar name when package could not be found
7 years ago
Ivan Pepelko
877bad7933
Added $_SERVER['USER'] as possible value for <vendor> part of package name.
7 years ago
CupOfTea696
14adc03225
Auto-skip interactive require when set by option
7 years ago
Jose Miguel Pérez Ruiz
b2f62bc06c
Fix Init Command to accept author names with Unicode combining diacritical marks
7 years ago
Jordi Boggiano
122e422682
CS fixes
7 years ago
Jordi Boggiano
586f4bac87
Make use of prefer-stable/minimum-stability when picking versions in require command, fixes #6219
7 years ago
Matthew "Juniper" Barlett
09dad8a018
Clean up regex in InitCommand::parseAuthorString
...
Per comments:
- https://github.com/composer/composer/pull/5638#discussion_r76972844
- https://github.com/composer/composer/pull/5638#discussion_r76973941
8 years ago
Matthew "Juniper" Barlett
ac41bb0615
Fix for issue #5631
...
- Add " ( and ) as valid characters in author name
- Add relavent unit tests
8 years ago
Jordi Boggiano
04ae1584dc
Add docs about package type to prompt, fixes #5378
8 years ago
Michael Aherne
830644f374
Observe COMPOSER environment variable in init command
8 years ago
Niels Keurentjes
fbbde23fb3
Improved error message when adding a package that is disallowed by PHP version, fixes #4686
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
b9a3ef73c0
Allow skipping author, fixes #4969
8 years ago
Niels Keurentjes
692a3ed300
Renamed Composer\Console\Command to BaseCommand for consistency with other abstract base classes.
8 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
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
Possum
29ca21f30e
PHP version checks tweaking
9 years ago
Rob Bast
acd1486406
Mark method as @private
9 years ago
Rob Bast
0fbc00f3fb
Switch to QuestionHelper
9 years ago
Rob Bast
290fafa156
Docs and whitespace
9 years ago
Rob Bast
bef46a17dc
Moved method
9 years ago
Jordi Boggiano
35a9b5dbf9
Merge pull request #3953 from alcohol/allow-numeric-author-name
...
Allow numeric author name
9 years ago
Evan Mattson
ec9eb2b799
update init type question
9 years ago
Evan Mattson
5ed001765f
allow package type to be set with init command
9 years ago
Rob Bast
c7d387f599
Allow numeric characters
9 years ago
Jordi Boggiano
ab3622dff1
Merge pull request #3365 from WouterJ/patch-1
...
Updated validator
9 years ago
Rob Bast
cb336a5416
Implement writeError throughout Composer
9 years ago
Wouter J
3bf1ee939b
Fixed validator to accept 'a/b' and 'a/b ~2.3'
10 years ago
Nils Adermann
859c8f5bb3
Use the repositories configured in composer.json for the require command
10 years ago
Jordi Boggiano
94926218e8
CS fixes
10 years ago
Jordi Boggiano
4bdd7adc55
Merge pull request #3319 from desyncr/bugfix/missing-default-author-value-validation
...
Fix missing validation on default value for author input
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
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
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
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
Kayla Daniels
ec758d95b0
updated package variable in gathering requirements
10 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
Przemysław Piechota
95cbb177dd
Init command - diacritical marks in author name
11 years ago
Jordi Boggiano
1dd8bffce5
CS fixes
11 years ago