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." } } },