Jordi Boggiano
c03a739548
Use psr-0 instead of psr0
2011-10-24 12:03:11 +02:00
Igor Wiedler
611639d26d
define types for autoload and repositories
2011-10-23 21:23:54 +02:00
Jordi Boggiano
be47991b36
Build a standalone autoload file
2011-10-23 21:23:37 +02:00
Jordi Boggiano
8b0fee3f35
Fix platform packages not being added to the pool
2011-10-23 21:10:45 +02:00
Jordi Boggiano
5e52d5c1ad
Fix tests
2011-10-23 19:55:43 +02:00
Jordi Boggiano
d7b77b9e87
Add note about Contributing to README
2011-10-23 19:40:44 +02:00
Jordi Boggiano
b667cf98c2
Clone added packages in update
2011-10-23 19:40:42 +02:00
Jordi Boggiano
2b15c4321b
Typo fix
2011-10-23 19:40:40 +02:00
Jordi Boggiano
35849ca227
Allow disabling of the default packagist repository in the main composer.json
...
Example:
{
"repositories": {
"packagist": false
}
}
2011-10-23 19:40:38 +02:00
Jordi Boggiano
aeab3c16fd
Add PackageRepository to define inline packages
...
Example:
{
"repositories": {
"Monolog": {
"package": {
"source": {
"url": "git://github.com/Seldaek/monolog.git",
"type": "git",
"reference": "1.0.1"
},
"version": "1.0.1",
"name": "monolog/monolog"
}
}
}
}
2011-10-23 19:40:36 +02:00
Jordi Boggiano
9b24734c9d
Add parsing and on-the-fly loading of repositories defined in packages
2011-10-23 19:40:34 +02:00
Jordi Boggiano
17286e993c
Add exception when json files can not be read
2011-10-23 19:40:32 +02:00
Jordi Boggiano
450095e61d
Adjust RepositoryManager to handle multiple repositories of one type
2011-10-23 19:40:30 +02:00
Jordi Boggiano
33e7001d7e
Fix typo
2011-10-23 19:40:26 +02:00
Jordi Boggiano
c33fc80d23
Add supports() to the InstallerInterface
2011-10-23 19:40:24 +02:00
Jordi Boggiano
8a571c05db
Fix issues in new autoloader code
2011-10-23 19:40:22 +02:00
Jordi Boggiano
c8cfa15f52
Use wrapped PlatformRepository only in the Solver
2011-10-23 19:40:20 +02:00
Jordi Boggiano
28369ea623
Add missing docblock
2011-10-23 19:40:18 +02:00
Igor Wiedler
808a2c9448
[composer] wrap UniversalClassLoader require in if class_exists
2011-10-23 19:40:16 +02:00
Igor Wiedler
aa7c4b8ef7
[autoload] refactor getFullPackage into populateAutoloadInformation
2011-10-23 19:40:14 +02:00
Igor Wiedler
9d238330b3
[autoload] refactor autoload generation code into a AutoloadGenerator
2011-10-23 19:40:12 +02:00
Igor Wiedler
72a1f66b7a
rename installAs to target-dir
2011-10-23 19:40:10 +02:00
Igor Wiedler
409b2e47ae
return early (this is very important)
2011-10-23 19:40:08 +02:00
Igor Wiedler
ea31039556
[autoload] autoloading prototype
2011-10-23 19:40:06 +02:00
Nils Adermann
72f69e6109
Merge pull request #60 from naderman/master
...
Implementation of the DefaultPolicy specs regarding prefered packages
2011-10-22 08:35:33 -07:00
Nils Adermann
e16c3f0626
Remove useless test, packages providing different versions aren't alternatives
2011-10-22 17:26:42 +02:00
Nils Adermann
0801d8ed31
Enable solver test regarding replaced packages after policy fix
2011-10-22 17:23:23 +02:00
Nils Adermann
571c14adf9
Prefer original packages over replaced packages of same repository priority
2011-10-22 17:20:45 +02:00
Nils Adermann
44369472be
Define the calculation of package priorities in a single method
2011-10-22 16:48:23 +02:00
Nils Adermann
1b6f57e651
Correctly implement priorities and version numbers in the default policy
2011-10-22 16:44:10 +02:00
Nils Adermann
b52d6d881a
Pool repository index represents priority, highest index = highest priority
2011-10-22 16:39:49 +02:00
Nils Adermann
7558731830
Fix documentation layout
2011-10-22 13:03:50 +02:00
Nils Adermann
4d5655a604
Add basic specification of the default solver policy behaviour
2011-10-22 12:48:53 +02:00
Nils Adermann
55d5e55195
DefaultPolicy test: pick package providing newest virtual package version
2011-10-21 15:22:47 +02:00
Nils Adermann
0c30610fdc
Complete the policy tests with provider and replacement tests
2011-10-21 14:58:31 +02:00
Nils Adermann
e4c94dd415
Adding tests for the default policy specifying its desired behaviour
2011-10-21 14:44:24 +02:00
Jordi Boggiano
40cc5fea1d
Add a few solver tests regarding "replace"
2011-10-15 20:04:29 +02:00
Jordi Boggiano
de7cbe60fe
Merge pull request #48 from nrk/fix-symfony-bundle
...
Fix missing support for the symfony-bundle package type.
2011-10-15 06:03:06 -07:00
Daniele Alessandri
74d7fdfcef
Fix missing support for the symfony-bundle package type.
...
Using Composer\Installer\LibraryInstaller to handle the installation of
packages that specify the "symfony-bundle" type is just a temporary solution
while waiting to better define how packages shipping Symfony bundles should
be treated.
2011-10-15 14:34:16 +02:00
Jordi Boggiano
e09f6900da
Fix up version parsing
2011-10-11 11:49:32 +02:00
Jordi Boggiano
19f89069a4
Add some more version normalization and support for branch names
2011-10-11 09:30:10 +02:00
Jordi Boggiano
536c1e0f88
Update README
2011-10-03 10:50:09 +02:00
Jordi Boggiano
b3fe30200b
Remove validation for now since it's doing more harm than good
2011-10-02 23:54:13 +02:00
Jordi Boggiano
7d4e67b335
Fix phar compiler
2011-10-02 23:38:54 +02:00
Jordi Boggiano
7c7bbb18c8
Updated README, refs #24
2011-10-02 23:38:27 +02:00
Jordi Boggiano
be769ea1ac
Add user-agent header to json fetches, fixes #39
2011-10-02 22:44:10 +02:00
Jordi Boggiano
2ebc795754
Error out when a package can not be found, refs #30
2011-10-02 21:24:09 +02:00
Jordi Boggiano
1a9de17a88
Detect and report common mistakes in json syntax, refs #36
2011-10-02 21:14:00 +02:00
Jordi Boggiano
cad0967788
json_decode returns null on error, not false
2011-10-02 21:04:37 +02:00
Jordi Boggiano
9210500714
Handle false and empty decoded json values as valid
2011-10-02 20:49:26 +02:00