1
0
Fork 0

Explain classmap generation in documentation

pull/387/head
Benjamin Eberlei 2012-03-05 14:13:06 +01:00
parent 671cd5ee08
commit 7855eda57a
1 changed files with 16 additions and 3 deletions

View File

@ -183,9 +183,10 @@ Optional.
Autoload mapping for a PHP autoloader. Autoload mapping for a PHP autoloader.
Currently only [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) Currently [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md)
autoloading is supported. Under the autoloading and ClassMap generation is supported.
`psr-0` key you define a mapping from namespaces to paths, relative to the
Under the `psr-0` key you define a mapping from namespaces to paths, relative to the
package root. package root.
Example: Example:
@ -198,6 +199,18 @@ Example:
Optional, but it is highly recommended that you follow PSR-0 and use this. 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 ## target-dir
Defines the installation target. Defines the installation target.