156 Commits (a4a2b6da876ca6aca7bd12843ca772c1fa4509e8)

Author SHA1 Message Date
Jordi Boggiano a3e91b5be6
Add allow-plugins config value (#10314)
Fixes #5659

- Automatically switch off plugins by default in July 2022
- reword hash into object in schema

Co-authored-by: Nils Adermann <naderman@naderman.de>
3 years ago
Jordi Boggiano 24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_* 3 years ago
Tizian Schmidlin 4f789a5f6d
Add "use-parent-dir" config to configure prompt when no composer.json is present in current dir (#10307)
Fixes #10299

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Helmut Hummel f12a5b8214
Expose path to autoload in a global var for binaries (#10137)
Always create proxy files for package binaries,
to avoid not working binaries in case the package
was installed from a path repository and is itself linked

If the binary is a PHP script, a global variable is now exposed,
which holds the path to the vendor/autoload.php file.
This variable can the be used in the binaries to include this file
without guessing where the path to the vendor folder might be.

Additionally it is now checked on binary creation whether
the reference binary has a shebang and if not, generates
a much simple proxy code, because the stream wrapper code,
that is required for PHP <8 to omit the shebang from the output,
can be skipped.

Fixes: #10119

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Stephan 44c5b6cde6
Config: add source option for command to show where a config value is loaded from (#10129) 3 years ago
Jordi Boggiano bd4d624cc7
Read first from $_SERVER and $_ENV before using getenv (#10218) 3 years ago
Martin Herndl 3645d3042c
Add types to root namespace (#10213) 3 years ago
Jordi Boggiano e137046558
Type annotations 3 years ago
Jordi Boggiano d1c8a4d1b4
Lots of typing improvements 3 years ago
Jordi Boggiano 2d54a27ebc
Fix config support for new bin-compat value, refs #9959 3 years ago
Brad Jones dd625669e8
Introduce gitlab-protocol option to force the gitlab repos to use https or git protocol (#9401) 3 years ago
Jordi Boggiano 8a3f4a8400
Add secure-svn-domains config option to mark secure svn:// hostnames, fixes #9872 3 years ago
Jordi Boggiano f13282e555
Change default preferred-install to dist, add --prefer-install=auto|dist|source to allow specifying auto (#9603)
Fixes #9546
Fixes #9674
3 years ago
Jordi Boggiano 52d7c6c383
Fix/add tests and also handle case where a json object is used 3 years ago
Jordi Boggiano 4130d388fe
Auto-detect packagist.org default repo replacements and deactivate it if it is redefined 3 years ago
Jordi Boggiano b7d770659b
CS fixes 4 years ago
Jordi Boggiano 6c31744c04
Disable full platform-check for extensions by default, now set to php-only, refs #9412 4 years ago
Jordi Boggiano 04aad524ec
Fix gitlab-domains/github-domains to avoid overwriting the default when another domain is configured, refs #9373 4 years ago
Jordi Boggiano 24abd233ec
Merge branch 'master' into code-improvements 4 years ago
Jordi Boggiano f966de94a9
Merge branch '1.10' 4 years ago
Jordi Boggiano 28fe3baf9c
Disable secure-http automatically when disable-tls is enabled, fixes #9235 4 years ago
Simon Berger 974e7ba296 Removed unneccesary elseifs 4 years ago
Jordi Boggiano 90332f1dbd
Add a readonly mode to the cache, fixes #9150 4 years ago
Jordi Boggiano 875a4784ed
Reorg config class a little 4 years ago
Jordi Boggiano 2c8a4a1b93
Add platform-check config option to disable platform_check.php generation, and disable it for Composer 4 years ago
Jordi Boggiano f964b83018
Add bearer support in config command and add to docs/schema, refs #8671 4 years ago
Arnout Boks 7c5e5e3ede Add option to disable the lock file
When the `lock` option is set to false, composer will not write a
`composer.lock` file to disk. This signals that the package is meant
to be developed with unlocked and always updated dependencies. At the
moment, both `install` and `update` are allowed to install the
dependencies for such a package. If #6822 is implemented, only `update`
should be used for packages without a lockfile.

https://github.com/composer/composer/issues/8354
5 years ago
Kevin Boyd 5633a68689 Add a helper to disable process timeouts
The helper can be included in custom script definitions by calling
"Composer\\Config::disableProcessTimeout".

Example:

{
  "scripts": {
    "watch": [
      "Composer\\Config::disableProcessTimeout",
      "vendor/bin/long-running-script --watch"
    ]
  }
}
5 years ago
Jordi Boggiano 11bfe9970f
Merge pull request #7912 from kathyoungaligent/feature/no-api-config
Feature/no api config
6 years ago
Kath Young fbb9d20c33 Adjusted config name to be more descriptive, added documentation 6 years ago
Kath Young 3d1e0e79cc Allow for no-api for Github to be a composer configuration as well as repo specific 6 years ago
bugreportuser 2739fc05e9 Read htaccess-protect as a bool 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
Wil Hall f0924fb878 Add htaccess-protect option for disabling the creation of .htaccess files 7 years ago
Jordi Boggiano 122e422682 CS fixes 7 years ago
Stefan Grootscholten a4af559ca8 Store access-token for re-use
Store the Bitbucket access-token (and the expiration time) so it can be re-used within the time it is valid.
The Bitbucket::requestToken and Bitbucket::getToken now only return the access-token and not all other parameters it receives from the Bitbucket API.
8 years ago
Jordi Boggiano 1464146629 Explicitly cast possible-null to string 8 years ago
Nicolas Grekas 6d4e60b991 Add --apcu-autoloader option to enable APCu caching of found/not-found classes 8 years ago
Jordi Boggiano e38ebefc7e Update packagist default repo to be packagist.org 8 years ago
Fabien Potencier 2c77fd6801 Fix process timeout when set to 0 8 years ago
moyo 997a062ebd Support gitlab private-token (or personal-access-token) for easier access via gitlab API
Config example:

$HOME/.composer/auth.json

{
  "gitlab-token": {
    "gitlab.com": "YOUR-TOKEN-HERE"
  }
}

Gitlab API authentication doc: http://doc.gitlab.com/ce/api/README.html
8 years ago
Jordi Boggiano d8c94c2640 Merge remote-tracking branch 'curry684/home-expansion' 8 years ago
Jordi Boggiano 2062070be9 Warn users with secure-http disabled once per hostname they access insecurely to avoid bad URLs going by undetected, fixes #5008 8 years ago
Niels Keurentjes d5158d943f Exempt custom URLs from secure-http checks, refs #5173 8 years ago
Niels Keurentjes c9534d48c1 Made env variable parsing in path replacements generic across platforms and replaced old config.php implementation. 8 years ago
Jordi Boggiano 3b0a1c6f70 Run cs fixer and update config to latest master 8 years ago
Jordi Boggiano da9b43dcc8 Merge remote-tracking branch 'curry684/code-quality' into 1.0 8 years ago
David Zuelke cf43244f85 fix config add/remove/unset/merge for bitbucket 8 years ago
Niels Keurentjes eb77c0b7f5 phpDoc cleanup, removed unused imports, variables and parameters. 8 years ago