321 Commits (10ada7bf82d317bb18813e62b7b103a0f5a86880)

Author SHA1 Message Date
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
5 years ago
Nils Adermann 1211ba1d51 BC break: Remove workaround for loading lock files without dev requires 5 years ago
Jordi Boggiano 9c32808782 Merge branch 'master' into 2.0 6 years ago
Hans-Christian Otto 85617aa740
Installer: Initialize $nameMatchesRequiredPackage
We had a case where we got `Undefined variable: nameMatchesRequiredPackage` — I think it should be initialized with false, right?
6 years ago
Jordi Boggiano b89720b52a Merge branch 'master' into 2.0 6 years ago
Jordi Boggiano 1f97ffdcd7 Add some docs 6 years ago
Sascha Egerer 82ecf95a3c Add PHP 5.3 compatibility 6 years ago
Sascha Egerer 1845adcfbd Fix update whitelist pattern resolving and add more tests 6 years ago
Sascha Egerer dc59af555a Fix invalid call to array_merge 6 years ago
Sascha Egerer 50cb5fe3da Update all whitelist matching root dependencies
The update command can receive a pattern like `vendor/prefix-*`
to update all matching packages.
This has not worked if multiple packages, depending on each other,
where matched to the given pattern. No package has been updated
in this case as only the first package matching the pattern was
added to the whitelist.
6 years ago
Jordi Boggiano 411dd51f20 Merge branch 'master' into 2.0 6 years ago
Jordi Boggiano 66d84f60c6 Fix pattern matching for remove wildcard, refs #7715 6 years ago
Jordi Boggiano 2e0f31106a Merge remote-tracking branch 'origin/master' into 2.0 6 years ago
Mathias Brodala 38a34159ef Dispatch "post-package-update" event after writing lock (#7766)
Fixes #7765
6 years ago
Nils Adermann f11c357325 Restore output of number of packages analyzed in solver 6 years ago
Nils Adermann c0f19f6c57 Move construction of pool from repo set into a pool builder
Pool construction depends on the install request now, so only required
packages get loaded, add some structure for future asynchronously
loading composer repositories
6 years ago
Nils Adermann 4c7d271a36 Remove deprecated function 6 years ago
Nils Adermann 1747df97e7 Create pool in show command to use policy, remove todos 6 years ago
Nils Adermann b6e2d60c9e Create the pool in the installer before giving it to the solver 6 years ago
Nils Adermann 1228bcdffc Internalize pool creation in repository set, store root aliases in set
The pool is still exposed too early in a few places which will require
further refactoring
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 d5a9d86ee4 Undo reformatting from #7441 6 years ago
Vladimir Reznichenko cd39efc72c New finding by Static Code Analysis 6 years ago
Gabriel Caruso 7d9f8e2247
Improvements
Small improvements, such as remove unused imports, unecessaries casts, parentheses, etc.
6 years ago
Jeroen Ketelaar 6ff74d3ed1
[BUGFIX] Fixed typo in comment 6 years ago
Jordi Boggiano 43e33be79f Fix regression in 036fc44c25, fixes #7268 6 years ago
Jordi Boggiano 4bddcd7124 Add support for gitlab.com URL replacement, fixes #7160 6 years ago
Jordi Boggiano c8aea719b1 CS fixes 7 years ago
Jordi Boggiano 0b3bc4ccb9 Merge branch '1.5' 7 years ago
Jordi Boggiano 4c4f516ea2 Make sure binaries are recreated before POST-hooks fire 7 years ago
Jordi Boggiano 17ec4c17b0 Set COMPOSER_DEV_MODE for all events and not just POST hooks 7 years ago
Jordi Boggiano 9a99e86ebc Rename NonRoot to Transitive, refs #6674 7 years ago
Matthew Grasmick 776977f597 Fixing method name. 7 years ago
Matthew Grasmick 11db6f90c2 Cleaning up comments 7 years ago
Matthew Grasmick 3826e51caa Renaming some methods and props. 7 years ago
Matthew Grasmick 2e4afaa941 Not skipping root packages. 7 years ago
Matthew Grasmick 6db92eae92 Trying to fix update behavior. 7 years ago
Matthew Grasmick ad465aa769 Updating var names. 7 years ago
Matthew Grasmick f29e98cdf9 Fixes #6661: Allow a given package and its dependencies (including siblings) to be updated. 7 years ago
Abyr Valg 37addea447 Make composer see installed dev packages 7 years ago
Jordi Boggiano acdb7638a8 Warn about require-dev not being ignored when an update --no-dev fails to resolve dependencies, fixes #6575 7 years ago
Jordi Boggiano 23ab57c311 Merge branch '1.4' 7 years ago
Jordi Boggiano 9afbddab6b Only update dist references when one existed already, fixes #6363 7 years ago
Jordi Boggiano a3f2b7bb92 Tweak variable name 7 years ago
Nils Adermann b1110df873 Merge pull request #6371 from balbuf/balbuf/move-all-plugins
Move all plugins and their dependencies to the front
7 years ago
Stephen Beemsterboer 06bb6c7530 Move plugins with no dependencies to the front, followed by plugins with their dependencies 7 years ago
Stephen Beemsterboer 4cda7e0a44 Take into account a package's "provide" and "replace" fields
A package can satisfy a require by its "provide" or "replace" fields,
so this leverages the getNames() method which returns these alternate
names as well.
7 years ago
Jordi Boggiano 954300032b Avoid useless warnings when updating/removing stuff that is not installed 7 years ago
Stephen da6efc9b02 Move all plugins and their dependencies to the front 7 years ago