From 8518cd1be8f430066133fe1a0908c72ccbd9987c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 22 Feb 2013 18:44:50 +0100 Subject: [PATCH] Add post-autoload-dump event to docs/schema --- doc/articles/scripts.md | 2 ++ res/composer-schema.json | 24 ++++++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/doc/articles/scripts.md b/doc/articles/scripts.md index 17c5ce3db..58f98760b 100644 --- a/doc/articles/scripts.md +++ b/doc/articles/scripts.md @@ -30,6 +30,8 @@ Composer fires the following named events during its execution process: - **post-package-update**: occurs after a package is updated. - **pre-package-uninstall**: occurs before a package has been uninstalled. - **post-package-uninstall**: occurs after a package has been uninstalled. +- **post-autoload-dump**: occurs after the autoloader is dumped, either + during `install`/`update`, or via the `dump-autoload` command. ## Defining scripts diff --git a/res/composer-schema.json b/res/composer-schema.json index 220e01e1c..2e9c4f039 100644 --- a/res/composer-schema.json +++ b/res/composer-schema.json @@ -223,43 +223,47 @@ "properties": { "pre-install-cmd": { "type": ["array", "string"], - "description": "Occurs before the install command is executed, contains one or more Class::method callables." + "description": "Occurs before the install command is executed, contains one or more Class::method callables or shell commands." }, "post-install-cmd": { "type": ["array", "string"], - "description": "Occurs after the install command is executed, contains one or more Class::method callables." + "description": "Occurs after the install command is executed, contains one or more Class::method callables or shell commands." }, "pre-update-cmd": { "type": ["array", "string"], - "description": "Occurs before the update command is executed, contains one or more Class::method callables." + "description": "Occurs before the update command is executed, contains one or more Class::method callables or shell commands." }, "post-update-cmd": { "type": ["array", "string"], - "description": "Occurs after the update command is executed, contains one or more Class::method callables." + "description": "Occurs after the update command is executed, contains one or more Class::method callables or shell commands." }, "pre-package-install": { "type": ["array", "string"], - "description": "Occurs before a package is installed, contains one or more Class::method callables." + "description": "Occurs before a package is installed, contains one or more Class::method callables or shell commands." }, "post-package-install": { "type": ["array", "string"], - "description": "Occurs after a package is installed, contains one or more Class::method callables." + "description": "Occurs after a package is installed, contains one or more Class::method callables or shell commands." }, "pre-package-update": { "type": ["array", "string"], - "description": "Occurs before a package is updated, contains one or more Class::method callables." + "description": "Occurs before a package is updated, contains one or more Class::method callables or shell commands." }, "post-package-update": { "type": ["array", "string"], - "description": "Occurs after a package is updated, contains one or more Class::method callables." + "description": "Occurs after a package is updated, contains one or more Class::method callables or shell commands." }, "pre-package-uninstall": { "type": ["array", "string"], - "description": "Occurs before a package has been uninstalled, contains one or more Class::method callables." + "description": "Occurs before a package has been uninstalled, contains one or more Class::method callables or shell commands." }, "post-package-uninstall": { "type": ["array", "string"], - "description": "Occurs after a package has been uninstalled, contains one or more Class::method callables." + "description": "Occurs after a package has been uninstalled, contains one or more Class::method callables or shell commands." + }, + "post-autoload-dump": { + "type": ["array", "string"], + "description": "Occurs after a the autoloader is dumped, contains one or more Class::method callables or shell commands." } } },