From 7855eda57abdbdc63837177e22295608dbe70c73 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Mon, 5 Mar 2012 14:13:06 +0100 Subject: [PATCH] Explain classmap generation in documentation --- doc/04-schema.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/doc/04-schema.md b/doc/04-schema.md index 0572da36f..5bf6b49d7 100644 --- a/doc/04-schema.md +++ b/doc/04-schema.md @@ -183,9 +183,10 @@ Optional. Autoload mapping for a PHP autoloader. -Currently only [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) -autoloading is supported. Under the -`psr-0` key you define a mapping from namespaces to paths, relative to the +Currently [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) +autoloading and ClassMap generation is supported. + +Under the `psr-0` key you define a mapping from namespaces to paths, relative to the package root. Example: @@ -198,6 +199,18 @@ Example: Optional, but it is highly recommended that you follow PSR-0 and use this. +You can use the classmap generation support to define autoloading for all libraries +that do not follow "PSR-0". To configure this you specify all directories +to search for classes. + +Example: + + { + "autoload: { + "classmap": ["src/", "lib/"] + } + } + ## target-dir Defines the installation target.