74 Commits (290fafa156793a0757253e53d71c7af392c7fd7d)

Author SHA1 Message Date
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
Francesc Rosàs 9aa0aba77c Extract email validation into a method 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 67e5e0588d Fixes #1347 (new license argument / dialog for init command) 11 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
Jordi Boggiano e7f4768668 Only ask for gitignore if the current dir is a git repo, fixes composer/satis#44 12 years ago
Igor Wiedler 423728440b Rename init --minimum-stability to --stability
This is consistent with create-project.
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
Nils Adermann 01593e0628 Merge pull request #1015 from Seldaek/memory
Reduce memory usage by only loading packages that are actually needed, fixes #456
12 years ago
Jordi Boggiano 41fc6ff9ee Fix formatRequirements return value, fixes #1026 12 years ago
Jordi Boggiano c31d588b7d Update init and depends commands to use the new filterPackages method 12 years ago
Jordi Boggiano de4e9c4022 Fix InputOption requirement flags 12 years ago
Beau Simensen d0773b20df Added minimum-stability option to init command, minor bug fixes
Added the ability to specify `minimum-stability` as an option.
Also added `homepage` and `require-dev` to the whitelist and
added necessary code to format dev requirements only if dev
requirements are present.
12 years ago
Jordi Boggiano ffecd39d33 Refactor repositories handling in config/factory/loader, fixes #828, fixes #826 12 years ago
Jordi Boggiano 3ac11b932c Expose default repositories in system config file 12 years ago
Jordi Boggiano 4a6ae454c2 Merge remote-tracking branch 'dpb587/multiple-repos'
Conflicts:
	src/Composer/Factory.php
	src/Composer/Package/Loader/RootPackageLoader.php
	tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php
12 years ago
Jordi Boggiano 66e9dcddf4 CS fixes 12 years ago