From 4e14ac7640eed7833b2aa780a84e5b068b465ecd Mon Sep 17 00:00:00 2001 From: Gregor Hyneck Date: Tue, 30 Apr 2019 13:46:17 +0200 Subject: [PATCH] Add documentation how to run plugins manually --- doc/articles/plugins.md | 5 +++++ doc/articles/scripts.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/articles/plugins.md b/doc/articles/plugins.md index 228cbac9e..86e24d87b 100644 --- a/doc/articles/plugins.md +++ b/doc/articles/plugins.md @@ -261,6 +261,11 @@ Now the `custom-plugin-command` is available alongside Composer commands. > _Composer commands are based on the [Symfony Console Component][10]._ +## Running plugins manually + +Plugins for an event can be run manually by the `run-script` command. This works the same way as +[running scripts manually](scripts.md#running-scripts-manually). + ## Using Plugins Plugin packages are automatically loaded as soon as they are installed and will diff --git a/doc/articles/scripts.md b/doc/articles/scripts.md index e0c27b10f..a3c3ab091 100644 --- a/doc/articles/scripts.md +++ b/doc/articles/scripts.md @@ -189,7 +189,7 @@ composer run-script [--dev] [--no-dev] script ``` For example `composer run-script post-install-cmd` will run any -**post-install-cmd** scripts that have been defined. +**post-install-cmd** scripts and [plugins](plugins.md) that have been defined. You can also give additional arguments to the script handler by appending `--` followed by the handler arguments. e.g.