262 Commits (d6cd6a4aef998de72fe440d873e4d7ff513b6d5b)

Author SHA1 Message Date
Fabien Potencier 5ffc349642 Add an exception when a Filesystem repository is corrupted 13 years ago
Fabien Potencier 527c711149 Move loader creation to avoid creating it more than once, unified the way packages are loading across repository classes 13 years ago
Fabien Potencier 9e7ebd9280 Fix autoload.php generator 13 years ago
Jordi Boggiano d16b928baf Add DebugPackagesCommand 13 years ago
Jordi Boggiano 220ab7f4ee Comments 13 years ago
Jordi Boggiano 23c1c40b3d Fix missing reference in local repository 13 years ago
Jordi Boggiano dcfe310cff Fix PEAR repository 13 years ago
Jordi Boggiano a263a3cb7d Dont enforce optional fields 13 years ago
Jordi Boggiano 89caa9b117 Rewrite autoloader to use only PSR-0, remove splitting of PEAR path 13 years ago
Jordi Boggiano c03a739548 Use psr-0 instead of psr0 13 years ago
Jordi Boggiano be47991b36 Build a standalone autoload file 13 years ago
Jordi Boggiano 8b0fee3f35 Fix platform packages not being added to the pool 13 years ago
Jordi Boggiano 5e52d5c1ad Fix tests 13 years ago
Jordi Boggiano b667cf98c2 Clone added packages in update 13 years ago
Jordi Boggiano 2b15c4321b Typo fix 13 years ago
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"
            }
        }
    }
}
13 years ago
Jordi Boggiano 9b24734c9d Add parsing and on-the-fly loading of repositories defined in packages 13 years ago
Jordi Boggiano 17286e993c Add exception when json files can not be read 13 years ago
Jordi Boggiano 450095e61d Adjust RepositoryManager to handle multiple repositories of one type 13 years ago
Jordi Boggiano 33e7001d7e Fix typo 13 years ago
Jordi Boggiano c33fc80d23 Add supports() to the InstallerInterface 13 years ago
Jordi Boggiano 8a571c05db Fix issues in new autoloader code 13 years ago
Jordi Boggiano c8cfa15f52 Use wrapped PlatformRepository only in the Solver 13 years ago
Jordi Boggiano 28369ea623 Add missing docblock 13 years ago
Igor Wiedler 808a2c9448 [composer] wrap UniversalClassLoader require in if class_exists 13 years ago
Igor Wiedler aa7c4b8ef7 [autoload] refactor getFullPackage into populateAutoloadInformation 13 years ago
Igor Wiedler 9d238330b3 [autoload] refactor autoload generation code into a AutoloadGenerator 13 years ago
Igor Wiedler 72a1f66b7a rename installAs to target-dir 13 years ago
Igor Wiedler 409b2e47ae return early (this is very important) 13 years ago
Igor Wiedler ea31039556 [autoload] autoloading prototype 13 years ago
Nils Adermann 571c14adf9 Prefer original packages over replaced packages of same repository priority 13 years ago
Nils Adermann 44369472be Define the calculation of package priorities in a single method 13 years ago
Nils Adermann 1b6f57e651 Correctly implement priorities and version numbers in the default policy 13 years ago
Nils Adermann b52d6d881a Pool repository index represents priority, highest index = highest priority 13 years ago
Nils Adermann e4c94dd415 Adding tests for the default policy specifying its desired behaviour 13 years ago
Jordi Boggiano e09f6900da Fix up version parsing 13 years ago
Jordi Boggiano 19f89069a4 Add some more version normalization and support for branch names 13 years ago
Jordi Boggiano b3fe30200b Remove validation for now since it's doing more harm than good 13 years ago
Jordi Boggiano 7d4e67b335 Fix phar compiler 13 years ago
Jordi Boggiano be769ea1ac Add user-agent header to json fetches, fixes #39 13 years ago
Jordi Boggiano 2ebc795754 Error out when a package can not be found, refs #30 13 years ago
Jordi Boggiano 1a9de17a88 Detect and report common mistakes in json syntax, refs #36 13 years ago
Jordi Boggiano cad0967788 json_decode returns null on error, not false 13 years ago
Jordi Boggiano 9210500714 Handle false and empty decoded json values as valid 13 years ago
Jordi Boggiano 18e28a2a9f Make sure .composer dir is created before writing in it 13 years ago
Jordi Boggiano 806c5f200a Fix var name 13 years ago
Jordi Boggiano e109213dfa Merge remote-tracking branch 'everzet/json-abstraction' 13 years ago
Jordi Boggiano 9e3c2a7e22 Skip platform packages from the lock file
This should maybe be done in a better way, but it'll do for now.
13 years ago
Jordi Boggiano cc769af923 Reuse normal installer logic for locked installs 13 years ago
everzet d5ba884f8b fixed potential error 13 years ago
everzet 1cca62dc97 move json parsing instructions into single class object 13 years ago
everzet 96122aada8 refactored install command to use new Locker 13 years ago
everzet cc2f2b79ca added findPackage() method to the RepositoryManager and RepositoryInterface 13 years ago
everzet 21191ffa00 refactored PackageLock to Locker and stabilized it 13 years ago
everzet 1fcb833902 added Json parsing abstraction 13 years ago
Igor Wiedler 2c1605925b ArrayLoader should not use require content for all other properties 13 years ago
Jordi Boggiano 9cbd74bf90 Merge remote-tracking branch 'everzet/downloader-interface-refactoring' 13 years ago
everzet 195272da09 refactored DownloaderInterface to be mono-installation-type 13 years ago
everzet cc740249ff don't return useless info 13 years ago
Jordi Boggiano ebe2a25ec6 Merge remote-tracking branch 'wilmoore/feature/memory-package-test-refactor'
Conflicts:
	src/Composer/Package/MemoryPackage.php
13 years ago
Jordi Boggiano fda206400a Fix constraint parsing 13 years ago
Jordi Boggiano f48634d074 Add source/dist reference information to package 13 years ago
Jordi Boggiano 00a4fe2a14 Refactor downloaders, git installs actually work well now 13 years ago
Wil Moore III b70bb1a9bc memory-package-test-refactor: refactored the memory package test to be a bit more DRY and "hopefully" re-usable in anticipation of more package types being adding in the future. 13 years ago
Jordi Boggiano c863c31881 Rename platform packages so they avoid conflicts with any vendor 13 years ago
Jordi Boggiano da6566b343 Minor improvements to VersionParser 13 years ago
Jordi Boggiano 2e10b5c17e Expand normalization feature and adjust tests 13 years ago
Jordi Boggiano 46a67733f8 Adjust codebase to the new VersionParser 13 years ago
Jordi Boggiano f761cfe525 Refactored VersionParser 13 years ago
Jordi Boggiano d455eef82c Fix pear & zip downloaders 13 years ago
Jordi Boggiano 544067ced9 Packages can't be added to two repos at once 13 years ago
Jordi Boggiano e5907a3431 Remove WrapperRepository in favor of PlatformRepository wrapping the local repo 13 years ago
Jordi Boggiano b9114e16be Fix typos, short var names etc 13 years ago
Jordi Boggiano c6d7760145 Merge branch 'refactoring' 13 years ago
Jordi Boggiano 5623f3e69c Fix refactoring bugs 13 years ago
Jordi Boggiano 4fe80d7abb Add WrapperRepository class 13 years ago
Jordi Boggiano c7af918caa Fix git downloader 13 years ago
everzet c9ecb0d1ad Remove unused methods from downloaders 13 years ago
everzet 05ddfde868 Reflect latest refactoring changes in commands 13 years ago
everzet ef71836f30 Refactored Composer class to be service container 13 years ago
everzet 0694f5217a Implemented RepositoryManager 13 years ago
everzet 3c439ce41c Added "type" field validator to ArrayLoader 13 years ago
everzet 5890b05eb0 Implemented ArrayDumper 13 years ago
everzet 20318f77a0 Refactored FilesystemRegistry to FilesystemRepository 13 years ago
everzet 5c841187fd Fixed RepositoryInterface 13 years ago
everzet 28d9df7da6 Added hasPackage and removePackage methods to the ArrayRepository 13 years ago
everzet 2fc0699492 Moved operations evaluation into new InstallationManager class 13 years ago
everzet 50aa7ac607 Provide $useSource argument to the DownloaderInterface methods 13 years ago
everzet 17d1abcec0 Refactored DownloadManager 13 years ago
everzet 6133108710 Refactored LibraryInstaller to use WritableRepository instead of Registry 13 years ago
everzet 9f98ee25ea Enhanced repository interface 13 years ago
everzet 123f5fef77 Refactored Operations in order to fulfill naderman requests 13 years ago
Jordi Boggiano 751f506080 Add info to docblocks 13 years ago
Jordi Boggiano 8533a65061 Remove unused methods from RepositoryInterface 13 years ago
Jordi Boggiano e700e6fcd9 Use new version parser in PlatformRepository 13 years ago
Jordi Boggiano cd80f22781 Type is not mandatory 13 years ago
Jordi Boggiano d27691a67f Fix namespace/use/typo issues 13 years ago
everzet 0a1e7320b0 Refactored solver result array. Now it returns array of operation objects which are much nicer to work with 13 years ago
everzet 5b0d17cc13 DownloaderInterface refactored 13 years ago
everzet 69f1de9986 Enhanced PackageInterface and BasePackage with getUniqueName() method, which provides name-version-releaseType string (used in installer registry) 13 years ago