Jordi Boggiano
a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks
2020-06-04 16:08:23 +02:00
Jordi Boggiano
0d1922dc27
Add a Composer\Versions class which is available in all projects at runtime to query installed packages/versions
2020-04-22 12:10:09 +02:00
Jordi Boggiano
17ed09be2e
Add failing test showing that packages fail to be installed if they match a previous alias which was not removed yet
2020-04-20 21:50:06 +02:00
Jordi Boggiano
8930f1b824
Add color to lock operations and dry run output
2020-04-08 15:18:28 +02:00
Nils Adermann
5bdc0fc9c5
Request jobs replaced by root require / fixed package
...
The only type of request job remaining was "install" which is really a
root requirement. The only other kind of input for the solver is now a
set of fixed packages.
Rules have been updated to account for only two kinds of former job
reason: FIXED or ROOT_REQUIRE. The job property has always been
redundant and has been removed, since reasonData suffices.
Problem reasons are always rules, so the unnecessary wrapping in an
array has been removed.
We now only ever generate a single rule per root require or fixed
package, so there is no need for the solver to special handle disabling
"jobs" anymore, the rule can just be disabled as usual.
For consistency special handling of rules for jobs in problems has been
integrated into the rule class like all other rule reasons. As part of
this change the error message for root requirements has been improved a
bit to make it clearer where the package installation request came from.
The word job has also been removed from operations, which are called
operations, not jobs.
2020-01-19 23:21:07 +01:00
Jordi Boggiano
006985a0ea
Execute all operations at once which lets us download all packages in parallel then install only once all downloads succeeded, fixes #2847
...
This also changes the PRE/POST_PACKAGE_INSTALL/UPDATE/UNINSTALL events to have less information available on them, repositorySet, request and policy are gone
2019-11-14 15:21:28 +01:00
Jordi Boggiano
63da7c6b2d
Add install-path to the installed.json for every package, fixes #2174 , closes #2424
2019-08-02 21:39:42 +02:00
Jordi Boggiano
60df892517
Store dev mode in installed.json, fixes #3008
2019-02-21 12:46:02 +01:00
Jordi Boggiano
3dfcae99a9
Add parallel download capability to FileDownloader and derivatives
2019-01-18 08:39:03 +01:00
Jordi Boggiano
713bc4de1d
Minor fixes and updated the rest of the code/tests to use HttpDownloader
2019-01-14 17:29:23 +01:00
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
2018-11-12 15:23:32 +01:00
johnstevenson
ed97c2116c
Use external XdebugHandler library
2018-03-08 19:20:16 +00:00
Gabriel Caruso
3d262bd637
Fixes from PHPStan level 0
...
More fixes from PHPStan level 0
2018-01-14 11:44:15 -02:00
Jordi Boggiano
122e422682
CS fixes
2017-03-08 15:16:44 +01:00
johnstevenson
3928f1f3be
Set xdebug version in environment, fixes #5967
2016-12-15 21:20:41 +00:00
johnstevenson
0256f62b3b
Fix and rationalize tests
2016-09-06 20:17:18 +01:00
johnstevenson
896d1d71f8
Use ConsoleOutput to determine color support
2016-09-06 14:57:18 +01:00
johnstevenson
e381abeec0
Simplify argv handling
2016-09-03 19:00:41 +01:00
johnstevenson
586eb3bb41
Restart with xdebug disabled
2016-08-08 18:30:56 +01:00
Jordi Boggiano
eb84ca564f
Use unique cache dir for integration tests as well
2016-04-01 12:07:42 +01:00
Jordi Boggiano
c1cc6bfecf
Avoid doing too many loads of the remotefilesystem
2016-01-10 20:06:10 +00:00
Rob Bast
ef37b86c81
closes #1508 - updated tests
2015-07-30 13:37:12 +02:00
Jordi Boggiano
0b4a9235f4
CS fixes
2015-02-24 14:22:54 +00:00
Jordi Boggiano
331bda235c
Fix activation of global plugins, fixes #3557
2014-12-16 11:12:13 +00:00
Jordi Boggiano
1622b9a390
Fix tests
2014-12-13 16:14:03 +00:00
Jordi Boggiano
94926218e8
CS fixes
2014-10-17 18:57:27 +01:00
Jordi Boggiano
959cc4d63c
Add info about conf file loading to debug output
2014-05-31 16:50:33 +02:00
Jordi Boggiano
5264d0637b
Fix regression added in 33af9eea95
, fixes #1841
2013-04-28 22:50:24 +02:00
Martin Hasoň
753a8345cb
Added support for the alias of an aliased package
2013-04-11 13:20:34 +02:00
Jordi Boggiano
ee60df708d
Handle stability changes correctly, fixes #877
...
On update, packages that are less stable than the minimum-stability allows will
now be downgraded to their correct versions, even if they were installed as
unstable already.
2013-03-10 19:55:26 +01:00
Jordi Boggiano
c32470c7df
Update docs, fix tests
2013-03-03 17:59:07 +01:00
Jordi Boggiano
da1cc39cfd
Fix tests
2012-11-29 09:33:51 +01:00
Jordi Boggiano
e0ce22f7cc
Fix tests
2012-10-18 18:43:31 +02:00
Jordi Boggiano
521bbe6556
CS fixes
2012-08-18 16:22:15 +02:00
Alexey Prilipko
e173f11b37
Add PEAR channel reader & Update PearRepository to use it.
2012-07-03 19:11:57 +11:00
Alexey Prilipko
ee2834a169
Add Mock for RemoteFileSystem
2012-07-03 19:11:57 +11:00
Jordi Boggiano
2ede0a3b54
Merge remote-tracking branch 'naderman/fix-duplicate-alias'
2012-07-01 19:07:14 +02:00
Nils Adermann
9346d4a501
Make the InstallationManagerMock behave like the real class on alias install
2012-07-01 18:41:58 +02:00
Jordi Boggiano
a4c829749e
Expose the whole composer context to the custom installers, fixes #672
2012-06-24 20:11:17 +02:00
Jordi Boggiano
ffecd39d33
Refactor repositories handling in config/factory/loader, fixes #828 , fixes #826
2012-06-24 13:06:13 +02:00
Jordi Boggiano
3ac11b932c
Expose default repositories in system config file
2012-06-23 12:55:05 +02:00
Nils Adermann
a756f7f880
Merge pull request #798 from cs278/dev-hash-detached-head
...
Ensure composer works with a detached head
2012-06-20 16:18:55 -07:00
Jordi Boggiano
73a865bf2a
Fix tests
2012-06-20 12:05:18 +02:00
Grégoire Pineau
f4e9dd4fb8
Fixed PSR rules
2012-06-14 12:10:01 +02:00
Chris Smith
97955a6ace
Mock ProcessExecutor
2012-06-14 10:52:23 +01:00
Jordi Boggiano
46972fbc22
Add handling for alias operations
2012-05-13 22:36:48 +02:00
Jordi Boggiano
4505df29df
Add functional tests for the installer, fixes #580
2012-05-13 21:42:43 +02:00
Jordi Boggiano
bd50ad32f0
Refactor InstallationManagerMock
2012-04-29 17:27:37 +02:00
Igor Wiedler
0995933183
Do not install root package as a vendor if some dependency requires it, closes #480
...
Also add some tests for the installer.
2012-04-27 12:29:11 +02:00