Jordi Boggiano
06ef742a66
Update phpstan, fix InstalledVersions key ordering to be more logical/consistent
2 years ago
Jordi Boggiano
6a466a120a
Enable strict types on all files
2 years ago
Jordi Boggiano
89ce53250e
Final type additions
2 years ago
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
2 years ago
Alexander Schranz
1321bfca36
Add return types to closures ( #9 )
2 years ago
Jordi Boggiano
a16ed3d0ed
Add return types to private/internal methods
2 years ago
Jordi Boggiano
8053d794a8
Fix reinstall command not firing pre-install-cmd/post-install-cmd events, fixes #10508 ( #10514 )
2 years ago
Anatoly Pashin
b1a96a3141
PHPStan level 6 in src/Composer/Repository ( #10197 )
3 years ago
Jordi Boggiano
01d734125c
Add more type info
3 years ago
Jordi Boggiano
005c55185a
Fix support for writing into UNC paths, and comparing UNC paths correctly in InstalledVersions, fixes #9993
3 years ago
Jordi Boggiano
4c9e75c6e5
Fix CS
3 years ago
Jordi Boggiano
82cffa17d3
Undo addition of initializeInstalled and remove inline copy of the data from the class
3 years ago
Jordi Boggiano
3fe4f84a76
Fix handling of metapackages with null paths, and handling of paths which do not have a shortest-path and require an absolute path to be addressed
3 years ago
Jordi Boggiano
518b44a810
Clean up dump code to avoid reimplementing var export, and remove DIRECTORY_SEPARATOR
3 years ago
Jordi Boggiano
8335b49cf0
Rename dev-requirement to dev_requirement for consistency
3 years ago
Jochen Roth
b6c9d34125
Add install-path and type to installedVersions.php and installed.php, add method to get installed packages by type
...
Issue https://github.com/composer/composer/issues/9648
3 years ago
Jordi Boggiano
1179e4b481
Change root.dev-requirement to root.dev in installed.php as the root is not required per se, and this simply tracks the dev mode at install time
3 years ago
Jordi Boggiano
40800df6bd
Fix CS
3 years ago
Nicolas Grekas
7d4501816c
Allow querying InstalledVersions::isInstalled() for no-dev packages
3 years ago
Jordi Boggiano
f7e8f7625f
Remove plugin installer hackery
3 years ago
Jordi Boggiano
cf324ee664
Make sure the plugins can use InstalledVersions to introspect themselves when being activated right after initial install
3 years ago
Jordi Boggiano
51371944e1
Add comment about not removing the static $installed data, refs #9635
3 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Jordi Boggiano
fec44f883c
Always load the current InstalledVersions when writing to disk, fixes #9457
4 years ago
Jordi Boggiano
56c65a58e2
Make platform-check only check non-dev requires, refs #9412
4 years ago
Yanick Witschi
bd6f62c535
Consistently reuse the new PlatformRepository::isPlatformPackage() method
4 years ago
Jordi Boggiano
56811b4c8f
Exclude platform require/provides from InstalledVersions as concrete ones are also not listed
4 years ago
Jordi Boggiano
6529fabb24
Add isFresh to InstalledRepositoryInterface and make sure local repo is always an InstalledRepositoryInterface
4 years ago
Jordi Boggiano
0d1922dc27
Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions
4 years ago
Jordi Boggiano
6e45a53e76
Add support for relative paths in handling of install-path for the installed.json
4 years ago
Jordi Boggiano
63da7c6b2d
Add install-path to the installed.json for every package, fixes #2174 , closes #2424
5 years ago
Jordi Boggiano
3ef27cabd6
Merge pull request #7999 from Seldaek/store_dev
...
Store dev mode in installed.json, fixes #3008
5 years ago
Jordi Boggiano
ba346ef04d
Add forward compatibility for upcoming v2 installed.json format, refs #7999
5 years ago
Jordi Boggiano
60df892517
Store dev mode in installed.json, fixes #3008
5 years ago
Jordi Boggiano
c8aea719b1
CS fixes
7 years ago
Kunal Mehta
2a38417653
Sort vendor/composer/installed.json deterministically
...
Just like composer.lock, sort installed.json in order of the package
names. This makes it easier to review diffs when this file is changed.
7 years ago
Niels Keurentjes
868e607f17
Missing parent constructor calls.
8 years ago
Jordi Boggiano
e707dcd92f
Also load transport options in filesystem repositories to avoid loss from the installed repo, refs #2189
10 years ago
Jordi Boggiano
5264d0637b
Fix regression added in 33af9eea95
, fixes #1841
11 years ago
Jordi Boggiano
33af9eea95
Always dump packages, even if only an alias is added, fixes #1809
11 years ago
Jordi Boggiano
4f5d08e2ad
Add InvalidRepositoryException
12 years ago
Jordi Boggiano
1bd4ccbd54
php-cs-fixer magic
12 years ago
Nils Adermann
be250fbb8b
Remove alias loading code which is no longer necessary
...
Since alias packages do not get dumped anymore, only original packages
will ever be in Filesystem repositories. Alias are created on the fly
based on alias info in the composer.json/composer.lock and on branch
alias data in the original package.
12 years ago
Jordi Boggiano
0a0a6b1813
Fix wrong var name, refs #674
12 years ago
Nils Adermann
0c1944a9d0
Let the solver handle aliases instead of the installer
12 years ago
Jordi Boggiano
f63df842b3
Fix alias handling with --dev installs, fixes #579
12 years ago
Jordi Boggiano
9da7fbbf37
Fix project aliases being redownloaded since they had no version
12 years ago
Jordi Boggiano
0b7ee194c6
Remove persistence of alias data, make abstract branch aliasing and keep it in composer only
12 years ago
Jordi Boggiano
1bdab5c4c8
Add markers for leftover problems
12 years ago
Jordi Boggiano
1228c04984
Add support for extra.branch-alias config to remap master on 2.1.x for example
12 years ago