Skip to content

Commit

Permalink
Add dump-autoload docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Aug 15, 2012
1 parent 269b348 commit fde3135
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/03-cli.md
Expand Up @@ -211,6 +211,25 @@ By default the command checks for the packages on packagist.org.
from version control.
* **--dev:** Install packages listed in `require-dev`.

## dump-autoload

If you need to update the autoloader because of new classes in a classmap
package for example, you can use "dump-autoload" to do that without having to
go through an install or update.

Additionally, it can dump an optimized autoloader that converts PSR-0 packages
into classmap ones for performance reasons. In large applications with many
classes, the autoloader can take up a substantial portion of every request's
time. Using classmaps for everything is less convenient in development, but
using this option you can still use PSR-0 for convenience and classmaps for
performance.

### Options

* **--optimize:** Convert PSR-0 autoloading to classmap to get a faster
autoloader. This is recommended especially for production, but can take
a bit of time to run so it is currently not done by default.

## help

To get more information about a certain command, just use `help`.
Expand Down

0 comments on commit fde3135

Please sign in to comment.