80 Commits (6ef65e5319a31c6ad1ad4913af50dae7f2832356)

Author SHA1 Message Date
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
Christophe Coevoet e5b948c683 Refactor the handling of conflict rules in the solver
Conflict rules are not added in the solver based on the packages loaded in the
solver by require rules, instead of loading remote metadata for them. This has
2 benefits:

- it reduces the number of conflict rules in the solver in case of conflict
  rules targetting packages which are not required
- it fixes the behavior of replaces, which is meant to conflict with all
  versions of the replaced package, without introducing a performance
  regression (this behavior was changed when optimizing composer in the past).
6 years ago
Jordi Boggiano 623c0dcda7 Improve solver error reporting, fixes #5086, fixes #2575, fixes #2661 8 years ago
Jordi Boggiano c9436438ff Add memoization to parseConstraints, saves some (6-7% here) RAM and marginal CPU time 8 years ago
Rob Bast 1c7016de45 remove dead code/class 9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Rob Bast a1427d7fd6 replace all occurences in code and comments 9 years ago
Nils Adermann 07e1d227c9 Output the size of the pool after dependency resolution for users 9 years ago
Nils Adermann 75c501251d Revert "Merge remote-tracking branch 'naderman/load-no-providers'"
This reverts commit 3e85f82373, reversing
changes made to b025d0982b.
9 years ago
Nils Adermann cfd0e44312 Move private function further down in pool 9 years ago
Nils Adermann ec5416f03c loadDev parameter is nonsense, properly load packages in create command 9 years ago
Nils Adermann b99c03ea04 Entirely remove whatProvides from Composer repository 9 years ago
Nils Adermann 090711b21c Completely move loading of packages from composer repo to pool 9 years ago
Nils Adermann 4d0db5add6 POC Implementation of loading only explicitly named package data 9 years ago
Hannes Van De Vreken d017fa4a1d Unused variable 9 years ago
Jordi Boggiano 3ba581f0df Improve error messages for required hhvm/php versions, fixes #3767 9 years ago
Nils Adermann c6af09b1da Make project id public
Reduction of rougly 1.3 million function calls on packagist update
10 years ago
Nils Adermann dccb728e10 Remove further unnecessary checks for packages being arrays 10 years ago
Nils Adermann 89bd9be295 This entirely removes StreamableRepositories and minimal package arrays 10 years ago
Sam Mousa 670ca2f889 Fixed issue #3441 10 years ago
Nils Adermann 83159dc153 Use elseif instead of else { if { 10 years ago
Nils Adermann 0daaa1a902 Reduce whatProvides overhead 10 years ago
Jordi Boggiano 94926218e8 CS fixes 10 years ago
Ryan Weaver 947db97e33 [#2492] Removing an unused variable and use statement, fixing phpdoc 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jordi Boggiano e23665be59 Fix replacers being picked if whatProvide was called before building the package whitelist, fixes #2991, fixes #2962 10 years ago
Christian Flothmann 0e9325da79 for AliasPackages check that the aliased package is white listed so that version constraints of AliasPackages are taken into account when computing package provisions 10 years ago
Nils Adermann aa74818fe0 Handle array candidates in whatProvides 10 years ago
Nils Adermann eb5c785dcd Remove superfluous string casts 10 years ago
Nils Adermann bc7008270f Properly limit to name matches only if necessary 10 years ago
Nils Adermann 3148ffd355 Whitelist packages with names matching those specified before generating rules
Addresses #2690 doesn't do any performance optimisations yet which we
could do now
10 years ago
Jordi Boggiano 51e6c3a466 Optimize solving by removing packages that are excluded by the root package requires 11 years ago
Jordi Boggiano 11a0d16ccc CS fixes 11 years ago
Jordi Boggiano 051d219438 Fix whatProvides returning too many results when no constraint is given 11 years ago
Jordi Boggiano 326faf2b51 Minor cleanups 11 years ago
Martin Hasoň 753a8345cb Added support for the alias of an aliased package 11 years ago
Jordi Boggiano a0d1d59868 Fix handling of aliases in streamable repos, fixes #1776, fixes #1749 11 years ago
Jordi Boggiano 2b385cbe58 Fix dependency flags not applying to provides/replaces, fixes #1771 11 years ago
Jordi Boggiano 62bf84fc4f Rename var 12 years ago
Jordi Boggiano f18839c350 Fix var override, fixes #1061 12 years ago
Jordi Boggiano 125ff3e4f5 Fix root aliasing with new providers repo format 12 years ago
Jordi Boggiano eceda0ffc7 Fix regression introduced in beb9a5bd72 12 years ago
Jordi Boggiano 5978197b5d Reset package IDs before they can be used in the pool in case there are already some in the cache 12 years ago
Jordi Boggiano beb9a5bd72 Code optimizations: avoid loops in match() 12 years ago
Jordi Boggiano 21a0ae9cad Cache whatProvide calls 12 years ago
Jordi Boggiano a3f9accd37 Fix various dumb issues 12 years ago
Jordi Boggiano 9369f48dcd Fix package id 12 years ago
Jordi Boggiano 18492a1f84 Remove Pool::getMaxId and the solver's reliance on it 12 years ago
Jordi Boggiano c0e5736ae7 Add support for one-file-per-provider composer repositories 12 years ago
Jordi Boggiano ded485dd60 Fix root aliasing and allow aliasing using the branch-alias as source 12 years ago