Przeglądaj źródła

updated docs with new create project command information

Tobias Munk 12 lat temu
rodzic
commit
f28f3c2d96
2 zmienionych plików z 7 dodań i 1 usunięć
  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