From e4435790a4055c58f60200c34b527f649455b311 Mon Sep 17 00:00:00 2001 From: Dennis Birkholz Date: Tue, 15 Sep 2015 17:39:55 +0200 Subject: [PATCH] Documentation --- doc/05-repositories.md | 7 +++++-- src/Composer/Repository/PathRepository.php | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/05-repositories.md b/doc/05-repositories.md index 5dae47295..8e0442bd8 100644 --- a/doc/05-repositories.md +++ b/doc/05-repositories.md @@ -608,8 +608,8 @@ update to the latest version. ### Path -In addition to the artifact repository, you can use the path one, which allow -you to depends on a relative directory. This can be especially useful when dealing +In addition to the artifact repository, you can use the path one, which allows +you to depend on a relative directory. This can be especially useful when dealing with monolith repositories. For instance, if you have the following directory structure in your repository: @@ -639,6 +639,9 @@ file, you can use the following configuration: } ``` +Repository paths can also contain wildcards like ``*`` and ``?``. +For details, see the [PHP glob function](http://php.net/glob). + ## Disabling Packagist You can disable the default Packagist repository by adding this to your diff --git a/src/Composer/Repository/PathRepository.php b/src/Composer/Repository/PathRepository.php index 81de87866..94df63104 100644 --- a/src/Composer/Repository/PathRepository.php +++ b/src/Composer/Repository/PathRepository.php @@ -38,6 +38,10 @@ use Composer\Util\ProcessExecutor; * { * "type": "path", * "url": "/absolute/path/to/package/" + * }, + * { + * "type": "path", + * "url": "/absolute/path/to/several/packages/*" * } * ] * @endcode