From fde3135a126f6c69c4883bbcf70646a8d0a13689 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 15 Aug 2012 12:39:53 +0200 Subject: [PATCH] Add dump-autoload docs --- doc/03-cli.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/03-cli.md b/doc/03-cli.md index bf47c4bb4..64d4839c2 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -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`.