69 Commits (96a8bc6c5bdfcdada2ff3786846b7ebda7aba060)

Author SHA1 Message Date
Dennis Birkholz 1d7fa565e6 Fix check for flag in case RELATIVE_PATHS should be changed somehow 9 years ago
Andreas Möller eac5fbdee4 Fix: Remove unused imports 9 years ago
Thibault Jamet 1eec4fdfa5 Add archive configuration default values 9 years ago
nevvermind 3032f0a538 Refactor based on code review
- Move the version api getter to the PluginManager And make it such that it can be mocked, but not pollute the public interface. That means "protected" visibility.
- The plugin api version constant should still be used throughout the code.
- Use different fixtures class names
- Use regex possessive quantifiers for performance
- Use full words for readability
9 years ago
nevvermind eb2aa14830 Make plugins have actual constraints instead of fixed versions
Instead of developing plugins against a single, fixed Plugin API version - `"composer-plugin-api": "1.0.0"`, this change will allow plugin developers to use versions like `"composer-plugin-api": "~1.1"` or `"composer-plugin-api": ">=2.1 <3.0"`, aka actual Composer-compatible constraints.

Only the "1.0", "1.0.0" and "1.0.0" Plugin API versions will be regarded as BC versions, and internally converted to "^1.0"; every other declared version string will be kept as it is.

Because of this new constraint flexibility, plugin version mismatches will be skipped, which means those plugin will NOT be registered to the system. Previously, a mismatch triggered a warning, but plugins were still registered.
9 years ago
Jordi Boggiano 80b0a35a68 Merge remote-tracking branch 'HuffAndPuff/ignore-platform'
Conflicts:
	src/Composer/Config.php
	src/Composer/Repository/PlatformRepository.php
9 years ago
Nils Adermann 0543a32d39 Merge pull request #3610 from bd808/feature/classmap-authoritative
Add classmap-authoritative config setting
10 years ago
Dmitry Tarasov 3b678ee379 Fix error handling for incorrect "repositories" array 10 years ago
Bryan Davis ad1f8e6c5a Add classmap-authoritative config setting
Add a "classmap-authoritative" configuration setting that can be used to
disable searching the various prefix and fallback directories for
classes that have not been registered with the
Composer\Autoload\ClassLoader class map. This setting can be used to
optimize performance by avoiding a potentially large number of
`file_exists` calls when Composer is being used in a program with
additional autoloader facilities. Use of the setting implies
"optimize-autoloader" to ensure that the most complete class map
possible is generated.

Closes #3603
10 years ago
Jordi Boggiano 60ac971419 Fix relative path fetching when a var uses var replacement, fixes #3564 10 years ago
Jordi Boggiano c54d6f93e3 Add --absolute to resolve absolute paths in config command, otherwise set default back to relative 10 years ago
Jordi Boggiano 331bda235c Fix activation of global plugins, fixes #3557 10 years ago
Jordi Boggiano fc3c7838b2 CS fixes 10 years ago
Chris Smith 86b5938cdb Allow reading of COMPOSER_ environment variables to be disabled 10 years ago
xelan bddba72e13 Option to disable inclusion of hostname in OAuth app name 10 years ago
Jordi Boggiano 449f8165ef Allow $HOME and ~ usage in all *-dir config values, fixes #3060 10 years ago
Jordi Boggiano d9fe17443b Allow empty json files to be merged into a config, fixes #3055 10 years ago
Jordi Boggiano ac497feaba CS fixes 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
Joakim Israelsson 571363dee2 The config setting 'platform' is used to override platform packages.
Like suggested in #1522.

These overridden packages appear only during install/update and not
when running init, show and search commands.
I don't know if they should or not.
10 years ago
Jordi Boggiano 9896abeb38 Doc tweaks, refs #2682 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
Dave Hulbert 81aa3a850c Fix some PHP doc blocks 11 years ago
Gennady Feldman ac78eaa027 Adding ssh protocol support to github-protocols. 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
Jordi Boggiano f85a366eb9 Finalize new autoloader-suffix config value, refs #2524, fixes #1413 11 years ago
Stan Lemon 5fd3223aec Updates per @stof 11 years ago
Stan Lemon d6c46f2091 Allow the autoloader suffix to be configured from a project's composer.json 11 years ago
Jordi Boggiano 7148b22414 Add github-domains config value for GitHub Enterprise setups, fixes #728
Signed-off-by: Gennady Feldman <gena01@gmail.com>
11 years ago
Ruud Denivel c7bb3ad746 refactor prepend autoloader from cli option to config var (prepend-autoloader) in composer.json 11 years ago
Jordi Boggiano e68d455c5c Remove the http protocol from github-protocols, refs #1955 11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Pavel Savinov 831bd844bd Almost PHPDoc problems fixed 11 years ago
Jordi Boggiano 19bfd6c713 Clarify some more 11 years ago
Jordi Boggiano 9e210c8338 Clarify exception message 11 years ago
Jordi Boggiano 1d5e3c5a0d Fix handling of COMPOSER_DISCARD_CHANGES env var 11 years ago
Jordi Boggiano 894f530898 Add COMPOSER_DISCARD_CHANGE env var, refs #1188 11 years ago
Miklós Márton 72a4146383 Scratch 'prefer-source'; 'preferred-install' is the bee's knees 11 years ago
Miklós Márton 0f8530ef56 Support for 'prefer-source' config setting, refs #553 11 years ago
Jordi Boggiano f06c0cb580 Code reorgs and make bool values real booleans, refs #1637 11 years ago
Ricard Clau 48ac383599 initial steps with new config value, implementation of discard changes for git and svn 12 years ago
Jordi Boggiano 995dc40130 Make packagist downgrade out of ssl after fetching the main file, since the other files can be verified via sha256 12 years ago
Jordi Boggiano 94e99b9c8b Update docs, config command and schema with all the config values 12 years ago
Pierre du Plessis 84b34b70e0 Add config option to set if the PHP include path should automatically be used when generating the autoloader 12 years ago
Jordi Boggiano 2e19d67aec allow K/KB as well as KiB for cache size configuration 12 years ago
Jordi Boggiano 514a3cde77 CS fixes 12 years ago
Galymzhan 219b489d01 add size-based limit for files cache, fixes #1321 12 years ago
Jordi Boggiano 23d45f67c1 Fix config merging for arrays 12 years ago
Jordi Boggiano 111c42b8fb Make config command list all values in the config (aggregated defaults + global [+ local]) 12 years ago