瀏覽代碼

updated docs with new create project command information

Tobias Munk 12 年之前
父節點
當前提交
f28f3c2d96
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 3 0
      doc/03-cli.md
  2. 4 1
      doc/articles/scripts.md

+ 3 - 0
doc/03-cli.md

@@ -315,6 +315,9 @@ If the directory does not currently exist, it will be created during installatio
 
     php composer.phar create-project doctrine/orm path 2.2.0
 
+It is also possible to run the command without params in a directory with an
+existing `composer.json` file to bootstrap a project.
+
 By default the command checks for the packages on packagist.org.
 
 ### Options

+ 4 - 1
doc/articles/scripts.md

@@ -34,7 +34,10 @@ Composer fires the following named events during its execution process:
   during `install`/`update`, or via the `dump-autoload` command.
 - **post-autoload-dump**: occurs after the autoloader is dumped, either
   during `install`/`update`, or via the `dump-autoload` command.
-
+- **post-root-package-install**: occurs after the root package has been
+  installed, during the `create-project` command.
+- **post-create-project-cmd**: occurs after the `create-project` command is
+  executed.
 
 ## Defining scripts