From 4e3fbeabfcdfc03d1bb2fd4996ad54c3b08d4d09 Mon Sep 17 00:00:00 2001 From: Jonathan Eskew Date: Wed, 1 Jul 2015 09:38:14 -0700 Subject: [PATCH] "No files" was inaccurate; amend to specify "no files except" --- doc/articles/scripts.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/articles/scripts.md b/doc/articles/scripts.md index db983a233..8d9eaa17e 100644 --- a/doc/articles/scripts.md +++ b/doc/articles/scripts.md @@ -84,7 +84,8 @@ and command-line executable commands. autoload functionality. - If a defined callback relies on functions defined outside of a class, the callback itself is responsible for loading the appropriate files, as no files -are autoloaded during Composer commands. +beyond those required for `psr-0`, `psr-4`, and `classmap` autoloading are +loaded during Composer commands. Script definition example: @@ -99,6 +100,9 @@ Script definition example: "MyVendor\\MyClass::warmCache", "phpunit -c app/" ], + "post-autoload-dump": [ + "MyVendor\\MyClass::postAutoloadDump" + ] "post-create-project-cmd" : [ "php -r \"copy('config/local-example.php', 'config/local.php');\"" ]