Thomas Flori
33d026bb06
fix code style to be PSR-2 conform
...
I tried to solve all PSR-2 style guide violations in files that I changed. One I could not solve: const can not concatenate in php 5.3.
8 years ago
Thomas Flori
597f834ae9
add getFileContent function
...
This function is very similar to a part from getComposerInformation - so we can use this function in getComposerInformation too. And because it is almost everywhere the same we can put it to abstract class.
By implementing getComposerInformation in abstract class we need to add the getChangeDate to interface too. Only Problem: perforce seems not to support a ChangeDate. For this we use 'now' to have at least something.
8 years ago
Jordi Boggiano
43903a3979
Merge branch '1.2'
8 years ago
Rafael Kassner
44634a689d
HgDriver does not identify bitbucket mercurial repos correctly
8 years ago
Jordi Boggiano
1c34248022
Check that PHP_ZTS is defined
8 years ago
Jordi Boggiano
9b08ee48db
Update platform package regex
8 years ago
David Zuelke
19126d76a6
unify php-* package description grammar
8 years ago
David Zuelke
a26c03eef0
add php-zts virtual platform package
8 years ago
David Zuelke
0f68c01094
add php-debug virtual platform package
8 years ago
Jordi Boggiano
68861c48ed
Merge branch '1.2'
8 years ago
Jordi Boggiano
64d29dc6dc
Fix regex cleaning up repo URLs, fixes #5686
8 years ago
Jordi Boggiano
429ee5f8eb
Merge branch '1.2'
8 years ago
Jordi Boggiano
a2b3e89d56
Make sure php-ipv6 is recognized as a platform package as well
8 years ago
Jordi Boggiano
285c4a1ac6
Merge branch '1.2'
8 years ago
Jordi Boggiano
f78f6c963d
Add note about rawurlencode, refs #5503
8 years ago
Calin Marian
a888b082b0
Make urlEncodeAll private
8 years ago
Calin Marian
862a13a17e
Urlencode Gitlab project names
...
Url encode all non alphanumeric characters in project name for GitLabDriver.
If the project name has "." characters in it, which is supported in Gitlab, the Gitlab API will 404 when requesting the branches or tags of the repository. This commit urlencodes all non alphanumeric characters in the project name in requests to the Gitlab API.
8 years ago
ianlet
5874132857
return https url of the repository given gitlab project is public
8 years ago
Richard Fussenegger
560f09cf3c
Changed error suppression to Silencer
8 years ago
Richard Fussenegger
14224a1f02
Reduced to single requirement
8 years ago
Richard Fussenegger
a155f4e7ea
Removed unused Silencer import
8 years ago
Richard Fussenegger
45e998c1d5
Reverted to initial version
8 years ago
Jordi Boggiano
4998ee27b3
Re-use mirror code from the git driver, refs #5384
8 years ago
Jordi Boggiano
664ba44901
Merge pull request #5467 from bohwaz/fossil
...
Fossil VCS support for Composer
8 years ago
Jordi Boggiano
75074382de
Merge branch '1.1'
8 years ago
Jordi Boggiano
ebae5dfd95
Undo downgrade before trying again if http seems unreliable, refs #2835
8 years ago
Pierre du Plessis
f29b3e86ce
Remove type parameter from RepositoryInterface
...
Fixes #5458
Remove the `$type` parameter from `RepositoryInterface` to alleviate the BC break for plugins.
8 years ago
bohwaz
5674262030
fix typo and bugs on Fossil support
8 years ago
bohwaz
0e26a07a74
Fix: use the right directory for repository file
8 years ago
bohwaz
abcbef4a67
Add Fossil support to Composer
8 years ago
Jordi Boggiano
894b53c115
Merge pull request #5454 from pierredup/type-search
...
Added type option to search
8 years ago
Pierre du Plessis
6a557e45b8
Added --type option to search
8 years ago
Jordi Boggiano
1c4acf3583
Refactor code to use RemoteFilesystem facilities for header parsing, refs #5435
8 years ago
Jordi Boggiano
f8c3ef4136
Merge remote-tracking branch 'dunlop-lello/master'
8 years ago
Stefan Grootscholten
78fcb5a366
Add support section to composer data for bitbucket repositories.
8 years ago
Phil Lello
7a112b0395
Check headers for missing scopes before asking for new OAuth token
...
This patch stops the GitHub VCS driver prompting for a new access
token when a repository is deleted/hidden.
Specifically, it checks the X-OAuth-Scopes and X-Accepted-OAuth-Scopes
response headers to see if the scopes on the current request match
those needed by the API call. If they do, the 404 means that the repo
is deleted/hidden, and there's no point asking for a new OAuth token.
8 years ago
Stefan Grootscholten
d9fd9fca6b
Implement changes after review of stof.
...
Rename getContents to getContentsWithOAuthCredentials.
Make gitDriver a private property.
8 years ago
Stefan Grootscholten
1084a3927e
Implement Bitbucket Util in GitBitbucketDriver.
8 years ago
Stefan Grootscholten
307fd4023b
Fetch composer.json using the oauth api.
8 years ago
Jordi Boggiano
5a3d60c0cf
Output warning for invalid-looking packagist config, fixes #5404
8 years ago
Jordi Boggiano
301ea66371
Use silencer and check the function exists, refs #5317
8 years ago
Jordi Boggiano
a7bbdcb794
Merge remote-tracking branch 'Fleshgrinder/ipv6-platform-requirement'
8 years ago
Jordi Boggiano
a4e8d858ba
Merge branch '1.1'
8 years ago
Jordi Boggiano
0cca4d1a44
Fix extension parsing to take the most usable data instead of just using 0 in case of parsing failure, fixes #5331 , fixes #5264
8 years ago
Richard Fussenegger
b68921ce8f
Provide IPv6 requirement via ext
8 years ago
Richard Fussenegger
132c37ab44
Added support for IPv6 requirement
...
I decided to add two additional PHP interpreter packages instead of an additional extension key. IPv6 support is part of PHP core (if enabled) and is not part of any optional extension.
8 years ago
Jordi Boggiano
d11eff27d0
Cache VCS driver after creation to avoid initializing it several times
8 years ago
Jordi Boggiano
8bfb2e8bc2
Add a getter to fetch the repo data from the outside of the github driver
8 years ago
Jordi Boggiano
4f2ae0a1d9
Clarify output when something is installed in the wrong version, refs #5259
9 years ago
Jordi Boggiano
65a4719251
Add output in why-not for when a package requires a platform package and it is not found, fixes #5259
9 years ago