1
0
Fork 0
Commit Graph

4273 Commits (bb375b1e751682aea1341ebbb696c017546aba7e)

Author SHA1 Message Date
Joakim Israelsson bb375b1e75 Only use "platform" config if it is an array.
Another option could have been to adjust the test that failed so a
platform array is returned from the mock config object but this
feels more robust.

If "platform" config is set to a non-array value it is silently
ignored now.
2014-05-15 13:36:40 +02:00
Joakim Israelsson 19b3955022 Throw InvalidArgumentException on invalid platform packages in config.
It's a user provided configuration value that's wrong so
it makes more sense.
2014-05-15 11:23:19 +02:00
Joakim Israelsson ac89a5bb3b Only allow platform packages to be overridden.
As defined by the PlatformRepository::PLATFORM_PACKAGE_REGEX pattern.
2014-05-14 20:37:24 +02:00
Joakim Israelsson 571363dee2 The config setting 'platform' is used to override platform packages.
Like suggested in #1522.

These overridden packages appear only during install/update and not
when running init, show and search commands.
I don't know if they should or not.
2014-05-14 20:31:42 +02:00
Joakim Israelsson f76685ce4f PlatformRepository now takes an array of packages to override.
These overrides are on the form
array($packageName => $version)

These "virtual" packages are added instead of the real ones,
with the version specified. Note that it is a version and not
a constraint so you cannot pass array('ext-mongo' => '*').

Also there is currently no limit what packages can be overriden.
2014-05-14 20:29:22 +02:00
Jordi Boggiano 0c343f925a Clarify code 2014-05-14 11:25:20 +02:00
Jordi Boggiano 2a7a954f62 Handle multiple urls in package transport options 2014-05-07 19:34:46 +02:00
Jordi Boggiano c811eded7d Do not output if we are about to retry a download 2014-05-07 19:34:45 +02:00
Jordi Boggiano b6981d09e8 Fix handling of origin url in composer repository class 2014-05-07 19:34:43 +02:00
Jordi Boggiano 39c8d3e6e1 Ignore empty refs 2014-05-07 19:34:42 +02:00
Jordi Boggiano 97873a27af Update perforce code 2014-05-07 19:34:41 +02:00
Jordi Boggiano 31b787249c More fixes to mirror support 2014-05-07 19:34:40 +02:00
Jordi Boggiano b39df32d4b Minor fixes 2014-05-07 19:34:39 +02:00
Jordi Boggiano ba776c06ee Add composer mirror class 2014-05-07 19:34:38 +02:00
Jordi Boggiano 9cbfe31983 Fix regression when using -vvv 2014-05-07 19:34:37 +02:00
Jordi Boggiano 44e45ed2d5 Add support for lazy providers/proxies 2014-05-07 19:34:36 +02:00
Jordi Boggiano 77163f66fc Add support for mirrors in composer repos 2014-05-07 19:34:35 +02:00
Jordi Boggiano e707dcd92f Also load transport options in filesystem repositories to avoid loss from the installed repo, refs #2189 2014-05-07 19:29:59 +02:00
Jordi Boggiano faeb706de6 Handle alias packages properly, refs #2189 2014-05-07 19:10:55 +02:00
Jordi Boggiano 32cd883daa Rename options to transport-options, refs #2189 2014-05-07 18:25:28 +02:00
Jordi Boggiano 31092843fd Only load options when they come from the lock file, not from standard metadata, refs #2189 2014-05-07 18:12:26 +02:00
Jordi Boggiano 016a016455 Merge remote-tracking branch 'lcobucci/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
2014-05-07 18:02:46 +02:00
Jordi Boggiano 7ad5e1a7fa Merge pull request #2977 from renatbilalov/master
Corrected description of the option --optimize (-o)
2014-05-07 11:00:46 +02:00
renatbilalov ee142688e1 Corrected description of the option --optimize (-o) 2014-05-07 14:55:42 +06:00
Jordi Boggiano 3677c1ea69 Merge pull request #2950 from jakoch/patch-4
reduce commit history of git checkout
2014-05-03 09:46:50 +02:00
jakoch 2a3159ec57 reduce commit history of git checkout (git depth 5) 2014-05-02 18:14:04 +02:00
Jordi Boggiano e87bc894da Merge pull request #2952 from jeromemacias/config_validator_array_loader_flags
Add --no-check-all option to composer validate command
2014-05-01 17:40:28 +02:00
Jérôme Macias 4f417e3985 Add --no-check-all option to composer validate command 2014-04-30 16:28:04 +02:00
Jordi Boggiano 6ffd34db90 Merge pull request #2948 from jakoch/patch-2
disable these xdebug settings only, if xdebug is loaded
2014-04-30 13:03:37 +02:00
jakoch 8fd82784b2 disable these xdebug settings only, if xdebug is loaded 2014-04-30 11:29:52 +02:00
Jordi Boggiano 05d9912f97 Ignore classes in ClassMapGenerator 2014-04-29 14:36:19 +02:00
Jordi Boggiano 29c39cc266 Merge pull request #2945 from fabpot/classmap-hotfix
fixed class map generator when using a heredoc with spaces
2014-04-28 17:57:52 +02:00
Fabien Potencier 12421dd6b7 fixed class map generator when using a heredoc with spaces 2014-04-28 15:21:22 +02:00
Jordi Boggiano 0f9bda3e37 Merge pull request #2942 from havvg/patch-1
fix autoload-dev example for PSR-4
2014-04-27 15:32:58 +02:00
Toni Uebernickel 2c6195785d fix autoload-dev example for PSR-4
The example leads to the following error.

```
  [InvalidArgumentException]
  A non-empty PSR-4 prefix must end with a namespace separator.
```
2014-04-27 12:29:35 +02:00
Jordi Boggiano eebffacd9f Use pagination to get tags/branches from the github API 2014-04-24 16:41:42 +02:00
Jordi Boggiano 009fcb4262 Fix arg signature 2014-04-20 19:34:54 +02:00
Jordi Boggiano cfed93287c Remove fenced block 2014-04-16 17:23:42 +02:00
Jordi Boggiano 3251f9f1aa Only check phar validity if phar.readonly is false 2014-04-16 10:24:13 +02:00
Jordi Boggiano ab4ecb9471 Merge pull request #2918 from Evan-R/patch-1
add note for alternate download method in case curl fails
2014-04-16 09:00:06 +02:00
Jordi Boggiano 7b487360e3 Merge pull request #2921 from schmkr/svn-driver-patch
Updating SvnDriver trunk revision check
2014-04-16 08:27:25 +02:00
schmkr 8dd6b052ce Updating SvnDriver trunk revision check
Not checking revision of composer.json, but from its parent directory.

See composer/composer#2849
2014-04-15 23:56:45 +02:00
Evan-R ee6a843b8e add note for alternate download method in case curl fails 2014-04-15 04:58:44 -06:00
Jordi Boggiano 14f35e812c Merge pull request #2912 from ckwalsh/master
Support generating class map for XHP classes
2014-04-14 14:11:15 +02:00
Jordi Boggiano 1347d5306a Make sure a good timezone is set, fixes #2899 2014-04-14 13:55:17 +02:00
Jordi Boggiano 49d4054e51 Handle files with no php at all, fixes #2910 2014-04-14 12:47:47 +02:00
Cullen Walsh 57d9e9852d Support generating class map for XHP classes 2014-04-14 00:21:53 -04:00
Jordi Boggiano f3c112e9e0 Split non-interactive and bad credential cases 2014-04-11 15:01:20 +02:00
Jordi Boggiano b437c1cc05 Support github auth directly in the RemoteFilesystem class 2014-04-11 14:29:17 +02:00
Jordi Boggiano 68e910d92a Merge pull request #2897 from jaypatel512/patch-1
Removing dist reference info from Artifact Repository
2014-04-11 13:40:18 +02:00