From 50944e1c423cc9bd79ac7e9df36a1d9d370bba31 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Wed, 3 Jun 2020 11:04:43 +0200 Subject: [PATCH 1/2] Added docs for glob pattern support in classmaps --- doc/04-schema.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/04-schema.md b/doc/04-schema.md index 00070a0b8..de558cd5e 100644 --- a/doc/04-schema.md +++ b/doc/04-schema.md @@ -610,6 +610,18 @@ Example: } ``` +Its also supported to use glob patterns in a classmap path: + +Example: + +```json +{ + "autoload": { + "classmap": ["src/addons/*/lib/", "3rd-party/*", "Something.php"] + } +} +``` + #### Files If you want to require certain files explicitly on every request then you can use From 501b06323d95dd432c186bcce02f7a739639fcc9 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 3 Jun 2020 13:12:22 +0200 Subject: [PATCH 2/2] Fix wording --- doc/04-schema.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/04-schema.md b/doc/04-schema.md index de558cd5e..8bdad86ee 100644 --- a/doc/04-schema.md +++ b/doc/04-schema.md @@ -610,7 +610,7 @@ Example: } ``` -Its also supported to use glob patterns in a classmap path: +Wildcards (`*`) are also supported in a classmap paths, and expand to match any directory name: Example: