浏览代码

"No files" was inaccurate; amend to specify "no files except"

Jonathan Eskew 10 年之前
父节点
当前提交
4e3fbeabfc
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      doc/articles/scripts.md

+ 5 - 1
doc/articles/scripts.md

@@ -84,7 +84,8 @@ and command-line executable commands.
 autoload functionality.
 autoload functionality.
 - If a defined callback relies on functions defined outside of a class, the 
 - 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 
 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:
 Script definition example:
 
 
@@ -99,6 +100,9 @@ Script definition example:
             "MyVendor\\MyClass::warmCache",
             "MyVendor\\MyClass::warmCache",
             "phpunit -c app/"
             "phpunit -c app/"
         ],
         ],
+        "post-autoload-dump": [
+            "MyVendor\\MyClass::postAutoloadDump"
+        ]
         "post-create-project-cmd" : [
         "post-create-project-cmd" : [
             "php -r \"copy('config/local-example.php', 'config/local.php');\""
             "php -r \"copy('config/local-example.php', 'config/local.php');\""
         ]
         ]