Jordi Boggiano
659775a607
Merge remote-tracking branch 'simensen/GitHub404FixPartTwo'
13 years ago
Beau Simensen
38680998ed
Remove the RemoteFilesystem factory and document GitHubDriver->GitDriver fallback.
13 years ago
till
5fdd09104f
resolve conflict
13 years ago
till
a1e1a8c7d7
* use askConfirmation() instead
13 years ago
till
244cc2a8c2
hide password input
13 years ago
till
96298a33dc
catch all failures
13 years ago
Jordi Boggiano
5dba49af54
Show package descriptions in show/search commands, merge similar packages in show, fixes #366
13 years ago
Beau Simensen
1e9cb6bac8
Use factory name instead of generator.
13 years ago
Beau Simensen
340ac49d87
Change `callback` to `callable`
13 years ago
Beau Simensen
6efbc7d531
Enhanced GitHub API/Private Repository support
13 years ago
Jordi Boggiano
950003bfc3
Reflow the VcsRepo and prevent exception leakage from breaking the parsing
13 years ago
Jordi Boggiano
1d544630b6
Allow requesting a particular vcs driver to bypass github/bitbucket ones
13 years ago
till
8d80969f26
trim input
13 years ago
till
4c2da57140
make static
13 years ago
till
c78d9ffece
more inline documentation
13 years ago
till
4da56ea617
explain non-interactive
13 years ago
till
f8d8ccfedc
* in interactive mode: display error message to the user when authorization fails
13 years ago
till
a3363a8560
* SvnDriver::$useCache: false by default
...
* setting is adjust in 'interactive' mode when auth fails
13 years ago
till
061d91b4a8
whitespace
13 years ago
till
1f03d37a89
* only 'ask' the user if the session is interactive
13 years ago
till
a8287118ed
* work on no-auth-cache 'creation'
13 years ago
Jordi Boggiano
6c9f1f6f5b
Merge pull request #416 from DonMartio/master
...
Missing slash permits version evaluation.
13 years ago
DonMartio
b74773053b
Missing slash prevents version evaluation.
13 years ago
Jordi Boggiano
3e22084ea4
Overhaul VcsDrivers, introduce TransportException for remote filesystem errors
13 years ago
till
978d4c145d
* more output
13 years ago
till
59c1a7ff15
* when an auth failure is detected and 'auth' is not present, we ask for credentials
...
* ... and repeat
13 years ago
till
44470da804
* do svnCommand() in execute() to be able to restart the dance in case it failed
13 years ago
till
a3e0a0805c
* always run non-interactive
13 years ago
till
907db48bb5
* wrap execution of commands into local method
13 years ago
till
99eb18d0ff
* rename var from $composer to $output (for consistency)
13 years ago
till
3f665e8bbb
* method to gather if this session is 'interactive' or 'non interactive'
13 years ago
till
d1482bfa3c
* refactor svn command 'creation' into a single method: getSvnCommand()
13 years ago
till
6417a86651
* fix docblocks
13 years ago
Jordi Boggiano
ae6de4be60
Merge pull request #377 from till/svn-auth
...
Svn auth
13 years ago
Jordi Boggiano
f546025bae
Move some code around
13 years ago
Jordi Boggiano
774e9d0da6
Remove dependency on filter_var
13 years ago
till
adfac9e34b
escape arguments
13 years ago
till
9ecbc5176e
remove isset()
13 years ago
till
0ecb710282
* add my credentials into every svn command
13 years ago
till
b30f8078e4
* avoid notice
13 years ago
till
4db4d6720b
correct my typo
13 years ago
till
ba8ccb1955
trailing space
13 years ago
till
275d1c9969
* added a method to return the credential string for the svn command
13 years ago
till
e18a4f7d31
detect if credentials are in the url
13 years ago
Jordi Boggiano
d03fb4804c
Fix local repo detection
13 years ago
Nils Adermann
a04f44a4f1
Merge pull request #359 from Seldaek/branch-alias
...
[WIP] Branch aliases support
13 years ago
Jordi Boggiano
0b7ee194c6
Remove persistence of alias data, make abstract branch aliasing and keep it in composer only
13 years ago
Jordi Boggiano
773338a688
Fixes for SVN support, fixes #172
13 years ago
Jordi Boggiano
1bdab5c4c8
Add markers for leftover problems
13 years ago
Jordi Boggiano
1228c04984
Add support for extra.branch-alias config to remap master on 2.1.x for example
13 years ago
Jordi Boggiano
c0b18bddb9
Bugfixes in the local git repos handling
13 years ago
Per Bernhardt
9a17899608
Although the tag "tip" does not provide a valid package version (see VersionParser), the implementation of HgDriver::getSource uses tip as the prefered label for the branch that tip is currently on.
...
This is not a problem at first hand because you can install a new package correctly with "tip" as source reference.
The problem is that any new revision on that branch won't lead to a new package, because the package will always refer to the same reference "tip".
Therefore you cannot update your project to the new version with "composer update".
13 years ago
Jordi Boggiano
5eb333680b
Rename findPackagesByName to findPackages and allow version arg
13 years ago
Igor Wiedler
d9b535e230
[pear-prefix] fix installing pear packages
13 years ago
Igor Wiedler
06f1ecf83a
[pear-prefix] add a pear-{channel}/ prefix to PearRepository packages
13 years ago
Nils Adermann
03a9e0dfee
Merge pull request #330 from Seldaek/repositories
...
[BC Break] Refactor repositories configuration
13 years ago
Jordi Boggiano
d0d5329f6f
Fix package repositories
13 years ago
Jordi Boggiano
c12dccd3d4
Restore quality of debug output
13 years ago
Jordi Boggiano
f73c08043f
Refactor VcsRepo to follow new dev model
13 years ago
Jordi Boggiano
32157a3904
Fix local git repo handling in GitDriver
13 years ago
Jordi Boggiano
e2199b2b03
Fixed automatic date parsing of versions
13 years ago
Jordi Boggiano
a28fa790be
Fix regex
13 years ago
Jordi Boggiano
fa8cb14073
Simplify check
13 years ago
Jordi Boggiano
f152fe723d
Allow local file system git repos & do not restrict to valid http* urls
13 years ago
Jordi Boggiano
d0f6b679bc
Merge remote-tracking branch 'francoispluchino/master'
13 years ago
Logan Aube
ea05f678fd
Exception mentioned PEAR repository when should be VCS, was misleading
13 years ago
François Pluchino
2e3eed081a
Merge remote branch 'composer/master'
...
Conflicts:
src/Composer/Downloader/FileDownloader.php
13 years ago
François Pluchino
953f0992f7
Merge callback method of FileDownloader and VcsDriver
...
Required corrections added
13 years ago
Jordi Boggiano
256bfedea1
Merge remote-tracking branch 'jalliot/proxy2'
...
Conflicts:
src/Composer/Downloader/FileDownloader.php
src/Composer/Repository/PearRepository.php
13 years ago
Jordi Boggiano
e92e3ba355
Simplify code
13 years ago
Henrique Moody
b030a36bf5
Some PEAR repositories does not works because of a wrong link parse.
13 years ago
Jordi Boggiano
416ae21a5a
Robustness fixes for new PEAR2 compat code
13 years ago
François Pluchino
f5d90e1340
Download Dist Package when the info is defined in root composer file
13 years ago
Henrique Moody
230f43d009
Chaged the key "recommend" for "suggest" in the parse of the PEAR2 dependences.
13 years ago
Henrique Moody
61c66b98a8
Correction of wrong variable name.
13 years ago
Henrique Moody
b3d91cab02
Update dependence resolution for PEAR2 packages.
13 years ago
Henrique Moody
9ca157913a
Remotion of a debug code.
13 years ago
Henrique Moody
234a6710a1
Correction at method parseVersion() of Composer\Repository\PearRepository.
13 years ago
Henrique Moody
be448e09b4
Update src/Composer/Repository/PearRepository.php
13 years ago
Henrique Moody
dd2174885b
Correction of variable overwrite used during an iteration and now the versions of PHP extensions are parsed like packages.
13 years ago
Henrique Moody
4e6a9806b6
Correction of wrong type suggestion.
13 years ago
Henrique Moody
6c47d6efe2
Renamed methods of Composer\Repository\PearRepository: fetchPearRepositories() to fetchPearPackages() and fetchPear2Repositories() to fetchPea2Packages().
13 years ago
Henrique Moody
b62a90a981
Removed hard code - suggestion of a PHP version.
13 years ago
Henrique Moody
0c6d806791
Correction of typo.
13 years ago
Henrique Moody
1e11aff456
Create method parseVersion for parsing of package versions. Now includes "max" version of the package.
13 years ago
Henrique Moody
c7e0fb7e58
Correction of typo error.
13 years ago
Henrique Moody
60831ac3fc
Update src/Composer/Repository/PearRepository.php
13 years ago
Henrique Moody
14adc0213e
Added suport for PEAR2 repositories.
13 years ago
Beau Simensen
d05f0a6e40
Addressed coding standard issues reported by @stof
13 years ago
Beau Simensen
e1370be7a0
Continued refactoring of install() method, mainly by way of adding Composite Repository
...
* Rewritten `install()` method now takes a repository instead of a list of packages (per @nadermen)
* Added Composite Repository
* Added tests for Composite Repository
* Removed "local repository" concept from Platform Repository
* Removed some `use` statements for Platform Repository where it was not actually being used
13 years ago
François Pluchino
a0afb88d5d
Fix bug on authorization of file download for the private repositories
13 years ago
Jordi Boggiano
568d9dabf6
fix previous commit
13 years ago
Pádraic Brady
3f7e7dff33
Fix a small bug where some PEAR channels' category link href doesn't contain a starting forward slash
13 years ago
Brian Clozel
23d85f1900
fix typo
13 years ago
Brian Clozel
33a0ba69de
fix issue #251 - Using $this not in object context
13 years ago
Jordi Boggiano
702d415472
Fix usage of the ProcessExecutor
13 years ago
Jordan Alliot
9c27e38654
Moved proxy handling to a new class so that it can be reused in other parts of Composer
13 years ago
digitalkaoz
627deab51c
fixed #230
13 years ago
François Pluchino
6d4ccaa398
Fix display overwrite()
13 years ago
Jordi Boggiano
e218b811e0
Convert static Process into an executor that can be injected
13 years ago
Jordi Boggiano
434c9ecdeb
Cleanups of IOInterface
13 years ago
Jordi Boggiano
6492118f29
Merge remote-tracking branch 'francoispluchino/master'
...
Conflicts:
src/Composer/Repository/Vcs/GitDriver.php
src/Composer/Repository/Vcs/HgDriver.php
src/Composer/Repository/Vcs/SvnDriver.php
13 years ago
Jordi Boggiano
6cfed52aae
Merge remote-tracking branch 'digitalkaoz/process'
13 years ago
François Pluchino
8053878b6a
Merge branch 'master'
...
Conflicts:
src/Composer/Console/Application.php
13 years ago
François Pluchino
03f5eee3fa
Fix some improvements
13 years ago
François Pluchino
541285022d
Replace CURL with copy() and file_get_contents()
13 years ago
François Pluchino
a5fb4abb36
Fix some improvements
13 years ago
Christophe Coevoet
bca786d5c3
Fixed the tests
...
array_filter preserves the keys even when filtering an array indexed
numerically.
13 years ago
Christophe Coevoet
bd1d20b2c9
Fixed CS
13 years ago
François Pluchino
7888ec5313
Add Authentification in FileDownloader
13 years ago
François Pluchino
a10f92aafe
Convert Wrapper class to ConsoleIO class
13 years ago
Christophe Coevoet
fc17e26bc3
Added a method to find packages by name
13 years ago
François Pluchino
f65b34860f
Merge branch 'test'
...
Conflicts:
src/Composer/Downloader/FileDownloader.php
src/Composer/Repository/Vcs/HgBitbucketDriver.php
13 years ago
François Pluchino
9af46ad800
Add Helper Wrapper
13 years ago
Hugo Hamon
398efbb894
[Repository] removed unused local $versions variable from VcsRepository::initialize() method.
13 years ago
Hugo Hamon
09f0ba6604
[Repository] removed unused local $match variable from HgBitbucketDriver::supports() method.
13 years ago
Hugo Hamon
70d7ab43ee
[Repository] removed unused local $match variable from GitHubDriver::supports() method.
13 years ago
Hugo Hamon
7842149a51
[Repository] removed unused local $match variable from GitBitbucketDriver::supports() method.
13 years ago
Hugo Hamon
66f214e446
[Repository] removed unused $requires local variable from PearRepository::fetchFromServer() method.
13 years ago
François Pluchino
86070a8b6e
Replace getHttpSupport() to getScheme()
13 years ago
François Pluchino
9b0e50cdc2
Restore the old regex
13 years ago
François Pluchino
013d145bcd
Add InputInterface and OutputInterface
13 years ago
François Pluchino
fa793649fa
Add a VcsDriver abstract class.
...
All XxxDriver extends this abstract class now.
13 years ago
Jordi Boggiano
126c57d07c
Fix notice
13 years ago
digitalkaoz
897ff9126d
seperate class for Process, using this one all over the place
13 years ago
digitalkaoz
a15567cea6
make use of process component fixes #105
13 years ago
Jordi Boggiano
f051778192
Clean up unneeded initialization stuff
13 years ago
Per Bernhardt
df5da58b87
Made HgDriver work on Ubuntu
13 years ago
root
399a406018
Fixed notices for edge cases.
13 years ago
Per Bernhardt
2fc49aa88b
Stop hg from parsing project's repository information while installing dependencies from source (HgDownloader) or initializing a VcsRepository (HgDriver).
13 years ago
Per Bernhardt
d78548cbf9
Added mercurial's "default" branch as a valid dev version (same as master / trunk).
13 years ago
Per Bernhardt
f74dafc08c
Fixed root identifier: Use global hash instead of local revision
13 years ago
Jordi Boggiano
f6b9488bf0
Move root package handling to a dedicated loader and make ArrayLoader more strict
13 years ago
Matthias Pigulla
ebbc807de0
Fix whitespaces and add strict return code checking
13 years ago
Matthias Pigulla
8ab60b7030
Still did not get it right
13 years ago
Matthias Pigulla
f24164dc16
forgot this when testing
13 years ago
Matthias Pigulla
7cdb8b6b3b
Some changes as suggested in the pr
13 years ago
Matthias Pigulla
4e1cb32f8c
Allow for file://-URLs here as well
13 years ago
Matthias Pigulla
2fc8e06d81
hg repos must not be hosted somewhere in particular, but detection may become expensive.
...
Additionally, suppress warnings and support file://-local repos
13 years ago
Jordi Boggiano
381fcb248a
Allow parsing of branches with invalid names but explicit versions in composer.json
13 years ago
Jordi Boggiano
139de0f79d
Fix handling of git repos with no tag, fixes #146
13 years ago
Jordi Boggiano
2e8762744f
Fix ComposerRepository ctor
13 years ago
Jordi Boggiano
1277277ec6
Fix CS
13 years ago
Jordi Boggiano
8df7eb0475
Add SvnDriver for the VcsRepository
13 years ago
Jordi Boggiano
9f55335011
Expose the Driver of the VcsRepository
13 years ago
Jordi Boggiano
8a127ed131
Fix URL handling for PEAR repositories
13 years ago
Jordi Boggiano
4fdc602037
Make VcsRepository drivers configurable
13 years ago
Jordi Boggiano
63d52b3e1b
Minor fixes to allow branch -dev versions
13 years ago
Jordi Boggiano
3b8ee5dd54
Use pretty name/version in lock file and debug:packages, fixes #98
13 years ago
Jordi Boggiano
8e6f8ae57e
Add prettyVersion to packages, fixes #76
13 years ago
Jordi Boggiano
e6710e311c
Merge remote-tracking branch 'webfactory/mercurial-support'
13 years ago
Jordi Boggiano
8a2afee55f
Rethrow on unexpected failures
13 years ago
Jordi Boggiano
22a93e7273
Check we have a driver before using it
13 years ago
Jordi Boggiano
1fd9174c0d
Fix auto-date parsing in GitDriver
13 years ago
Jordi Boggiano
b350dda0fe
Skip GitHub driver if openssl is disabled
13 years ago
Per Bernhardt
b969309440
Register new drivers...
13 years ago
Per Bernhardt
bf21dfeb31
Added drivers for bitbucket (hg and git)
13 years ago
Per Bernhardt
38198a5f36
Fixed blank lines.
13 years ago
Per Bernhardt
b0d2897af3
Fixed unused variables.
13 years ago
Per Bernhardt
3e5fd85768
Fixed CS and unused variables
13 years ago
Per Bernhardt
ee4d4ee3fa
Added HgDriver for the VcsRepository
13 years ago
Jordi Boggiano
4b5abaf44f
Fixes in PEAR support
13 years ago
Jordi Boggiano
f2ab4d08e5
Fetch default HEAD branch from remote
13 years ago
Jordi Boggiano
b6537324ef
Change to GitHub API v3 and fetch default branch
13 years ago
Jordi Boggiano
4c2e8596aa
Add VCS Repository and Git + GitHub drivers
13 years ago
Fabien Potencier
1450ebd837
Fix bug in an exception, added unit tests
13 years ago
Jordi Boggiano
305856f2f5
Merge pull request #68 from fabpot/small-opt
...
Move loader creation to avoid creating it more than once, unified the way
13 years ago
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
Jordi Boggiano
23c1c40b3d
Fix missing reference in local repository
13 years ago
Jordi Boggiano
dcfe310cff
Fix PEAR repository
13 years ago
Jordi Boggiano
5e52d5c1ad
Fix tests
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
450095e61d
Adjust RepositoryManager to handle multiple repositories of one type
13 years ago
Jordi Boggiano
c8cfa15f52
Use wrapped PlatformRepository only in the Solver
13 years ago
Igor Wiedler
72a1f66b7a
rename installAs to target-dir
13 years ago
Igor Wiedler
ea31039556
[autoload] autoloading prototype
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
cc2f2b79ca
added findPackage() method to the RepositoryManager and RepositoryInterface
13 years ago
Jordi Boggiano
c863c31881
Rename platform packages so they avoid conflicts with any vendor
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
e5907a3431
Remove WrapperRepository in favor of PlatformRepository wrapping the local repo
13 years ago
Jordi Boggiano
4fe80d7abb
Add WrapperRepository class
13 years ago
everzet
0694f5217a
Implemented RepositoryManager
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
9f98ee25ea
Enhanced repository interface
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
d27691a67f
Fix namespace/use/typo issues
13 years ago
everzet
9deb10361f
second batch of refactoring
13 years ago
everzet
5f4d46f7ae
repository factoring refactoring
13 years ago
Jordi Boggiano
ba9f12a517
Add extra and type info to packages
13 years ago
Jordi Boggiano
49c3446ac1
Make use of new dist properties, refactored ZipDownloader
13 years ago
Jordi Boggiano
f272f66324
Fixes and improvements to the PEAR implementation
13 years ago
Jordi Boggiano
5b061b8ddb
Remove TODO
13 years ago
Benjamin Eberlei
fa613cad19
Rewrite PearRepository to implement PEAR Client/Server protocol itself, taking longer then pear remote-list, but at least showing ALL available versions, making arbitrary dependencies possible.
13 years ago
Benjamin Eberlei
8afc2ca694
Add support for PEAR repository and downloading, example composer.json would look like {"repositories":{"doctrine": {"pear":" http://pear.doctrine-project.org "},"requires":{"DoctrineORM":"2.0.5"}}. You can use pear repositories this way for now. PEAR packages are not downloaded via pear, only via their .tgz packages in the PEAR repository. Automatically detecting dependencies will require reverse-engineering the PEAR protocol a little bit more, however from looking at a pirum output it looks simple.
13 years ago
Nils Adermann
c225b4c689
Correctly match platform specific PHP version numbers
13 years ago
Jordi Boggiano
52888f193d
Fix version parsing of PHP on some linux distros
14 years ago
Jordi Boggiano
ae922eaf4c
Use ReflectionExtension to read ext versions
14 years ago
Jordi Boggiano
bb52105c37
Add GitRepository class
14 years ago
Jordi Boggiano
56da52d38f
PlatformRepository now adds packages for every loaded php extension as well
14 years ago
Jordi Boggiano
05d527446b
addPackage needs to trigger initialization too
14 years ago
Jordi Boggiano
d185194d1a
Create links/constraints between packages
14 years ago
Jordi Boggiano
b53a3086b6
Minor refactorings and changes
14 years ago
Nils Adermann
f0af6b7d57
It's called a repository, not a registry
14 years ago
Jordi Boggiano
e03983697a
Add base installer/downloader and ComposerRepository
14 years ago
Jordi Boggiano
2475ce47e4
Make ArrayRepository more extensible
14 years ago
Jordi Boggiano
3da43e751d
Update naming of repositories
14 years ago