From 636f93750cba0aac2673130877680ab7e3816fd6 Mon Sep 17 00:00:00 2001 From: msiebeneicher Date: Tue, 17 Feb 2015 15:56:34 +0100 Subject: [PATCH] add "exclude-from-classmap" description to 04-schema.md --- doc/04-schema.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/04-schema.md b/doc/04-schema.md index e422d5c38..2dbab14aa 100644 --- a/doc/04-schema.md +++ b/doc/04-schema.md @@ -554,6 +554,22 @@ Example: } ``` +#### Exclude files from classmap + +If you want to exclude some files or folders from the classmap you can use the 'exclude-from-classmap' property. +This might be useful to exclude UnitTest classes from the classmap in your live environment, for example. + +The classmap generator will ignore all files which match your configured regex pattern. +Please note that configured regex pattern will be interpreted as case sensitive. + +```json +{ + "autoload": { + "exclude-from-classmap": ["/Tests/", "/test/", "/tests/"] + } +} +``` + ### autoload-dev (root-only) This section allows to define autoload rules for development purposes.