88 Commits (737a613a50c7dd8eebcf7a1bc8ed7e0d7b46afdd)

Author SHA1 Message Date
Nils Adermann f5e18250e6 Merge remote-tracking branch 'github-composer/2.0' into solve-without-installed
* github-composer/2.0: (48 commits)
  Fix missing use/undefined var
  Split up steps on VCS downloaders to allow doing network operations before touching the filesystem on GitDownloader, fixes #7903
  Fix use statement
  Deduplicate findHeaderValue code
  Add install-path to the installed.json for every package, fixes #2174, closes #2424
  Remove unnecessary config from phpstan
  Make sure the directory exists and will not block installation later when downloading
  Avoid wiping the whole target package if download of the new one fails, refs #7929
  Only empty dir before actually installing packages, fixes #7929
  Improve output when installing packages
  Show best possible version in diagnose command
  Remove extra arg
  Allow path repos to point to their own source dir as install target, resulting in noop, fixes #8254
  Fix use of decodeJson
  Fix update mirrors to also update transport-options, fixes #7672
  Fix updating or URLs to include dist type and shasum, fixes #8216
  Fix origin computation
  Improve handling of non-standard ports for GitLab and GitHub installs, fixes #8173
  Load packages from the lock file for check-platform-reqs if no dependencies have been installed yet, fixes #8058
  Fix error_handler return type declaration
  ...
5 years ago
Jordi Boggiano 6c4357a7ed
Merge branch 'master' into 2.0 5 years ago
Nils Adermann 9053d74282 Merge branch '2.0' into solve-without-installed
* 2.0: (101 commits)
  SVN: hide passwords for debug output
  Free $solver asap
  fixes #8179
  [minor] Fixed a typo in the CHANGELOG.md.
  Update deps
  Update changelog
  Revert "Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET" Revert "Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151"
  Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151
  Fix display of HHVM warning appearing when HHVM is not in use, fixes #8138
  Read classmap-authoritative and apcu-autoloader from project config when installing via create-project, fixes #8155
  Use possessive quantifiers
  Update xdebug-handler to 1.3.3
  fixes #8159
  Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET
  flag should come before script name
  use full command name, not abbreviated/alias
  modify text
  Document the alternatives to disable the default script timeout
  Anchor pattern
  Fix URL resolution for Composer repositories
  ...
5 years ago
Ken Love 81a4f74b5b Composer\Script\Event should have access to originating event details 5 years ago
Matthew Brown 65903aacfd Fix type issues (#7996)
* Fix type issues found by Psalm
6 years ago
Jordi Boggiano 1b7e957cc1
Add EventDispatcher::removeListener to allow deregistration of listeners 6 years ago
Nils Adermann 10ada7bf82 Refactor Installer class into separate install and update processes
- Introduce separate Lock and LocalRepo transactions, one for changes
  to the lock file, one for changes to locally installed packages based
  on lock file
- Remove various hacks to keep dev dependencies updated and
  incorporated the functionality into the transaction classes
- Remove installed repo, there are now local repo, locked repo and
  platform repo
- Remove access to local repo from solver, only supply locked packages
- Update can now be run to modify the lock file but not install packages
  to local repo
6 years ago
Jordi Boggiano 0b928b2a42 Merge branch 'master' into 2.0 6 years ago
Christopher Hertel e5989fcfe0 adding PHP_BINARY as env var to script execution 6 years ago
Jordi Boggiano 411dd51f20 Merge branch 'master' into 2.0 6 years ago
Jérôme Deuchnord b0b00ad1fa Call a script recursively with extra parameters (#7720)
* Added support for calling scripts recursively (fixes #7562)
6 years ago
Michele Locati 04098153c8 Add support for running composer with phpdbg (#7798) 6 years ago
Jordi Boggiano 2e0f31106a Merge remote-tracking branch 'origin/master' into 2.0 6 years ago
Jordi Boggiano 5a56bb6971 Remove BC event and constraint classes 6 years ago
Gabriel Caruso 2a13bb2649 Fixes from PHPStan (#7687)
* fix docblocks

* remove redundant conditional

* fix wrong variable name

* fix wrong namespaces

* add missing private members

* remove unused/redundant arguments

* move testcase class

* exclude TestCase.php

* Tweak RuleWatchGraph type hints

* Tweak doc comment
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
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Jordi Boggiano e37e7f1329 Fix handling of non-callable event listeners, fixes #7229 7 years ago
Jordi Boggiano 288631a37e Log the source of the failure when an aliased script fails, fixes #7201 7 years ago
Jordi Boggiano 9824d339b6 Escape arguments, refs #6414 7 years ago
Jasper N. Brouwer 4ce39c75c7 Pass more ini directives when executing php
Not only pass the current value for "memory_limit" along when executing
php, but also do the same for "allow_url_fopen" and "disable_functions"
7 years ago
Jordi Boggiano 122e422682 CS fixes 8 years ago
Jordi Boggiano 1baa2a52d4 Make sure script running errors are always output even in quiet mode, fixes #6122 8 years ago
Jordi Boggiano 7aa7c3ced3 Forward composer memory_limit to child processes, fixes #6075 8 years ago
Jordi Boggiano e4840ee413 Add a COMPOSER_BINARY env var so that chdir does not affect @composer script resolvability, fixes #6080 8 years ago
Jordi Boggiano 98c5f825e0 Fix tests and regression in @ref script handling 8 years ago
Jordi Boggiano b0000617cc Support @php prefix for scripts to reuse the current PHP interpreter, fixes #5957 8 years ago
Fabien Potencier 07cbb73184 fixed deprecated class usages 8 years ago
Jordi Boggiano ec2660fe78 Fix regex escaping, fixes #5674 8 years ago
Jordi Boggiano 2ffa1148a9 Merge branch '1.2' 8 years ago
Den Girnyk 71e0fba216 Pass devMode from RunScriptCommand to Script\Event 8 years ago
Jordi Boggiano 2d8251b7ad Fix handling of local binaries on windows, refs #5612 8 years ago
David Jack Wange Olrik 2c84be47c2 Add support for seamless execution of local binaries
Projects that add binaries to `vendor-bin` can now execute those via the same command as projects that consume them without installing them first.

In list overview local commands have a `(local)` tag to distinguish them from commands installed in `vendor-bin`.

Local binaries take precedence over `vendor-bin` which takes precedence over binaries in path.
8 years ago
Jordi Boggiano aaf2c06e7b Add ScriptExecutionException for CLI scripts and avoid showing the full exception to users, fixes #5281 8 years ago
Jordi Boggiano a67b127a1a Add deprecation notice for the event type hint rewrites, refs #5238 9 years ago
Jordi Boggiano 60ce2324bc Add ability to call composer from scripts using @composer XXX, fixes #5153 9 years ago
Jordi Boggiano c45cc912ab Warn when referencing unknown scripts 9 years ago
Jordi Boggiano 1f0b01e70d Merge remote-tracking branch 'watermanio/strict-types' into 1.0 9 years ago
Jordi Boggiano 3b0a1c6f70 Run cs fixer and update config to latest master 9 years ago
Niels Keurentjes 818c3e707a Ton of phpDoc fixes. 9 years ago
Andy Waterman d4207ff49f Strict type checks of null and bool 9 years ago
Jordi Boggiano f542b0f32d Only use Path if it is actually available, refs #5114 9 years ago
nishiyama 8b221905ca fix path info 9 years ago
Jordi Boggiano 934be204a2 Simplify exec implementation and add full PATH support, refs #4887 9 years ago
Jordi Boggiano 2609cfdd1d Always set bin-dir into PATH before calling scripts, fixes #4852, closes #4898 9 years ago
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 9 years ago
Jordi Boggiano adc0bbeeb9 Forward args/flags down to referenced events 9 years ago
Jordi Boggiano 24ccaa328d Tweak output of calls to script references, refs #4592 9 years ago
Giorgio Premi fd0026b542 Detect infinite script call recursion 9 years ago
Giorgio Premi a25492d1b9 Allow composer script call with @ syntax 9 years ago