From 06a8ec3c2b5cd2a27b821284203a2940af9b345b Mon Sep 17 00:00:00 2001 From: MarioRadu Date: Wed, 4 Dec 2024 11:38:33 +0200 Subject: [PATCH] composer post install script Signed-off-by: MarioRadu --- bin/composer-post-install-script.php | 27 +++++++++++++++++++++++++++ composer.json | 3 +++ 2 files changed, 30 insertions(+) create mode 100644 bin/composer-post-install-script.php diff --git a/bin/composer-post-install-script.php b/bin/composer-post-install-script.php new file mode 100644 index 0000000..3f55fd9 --- /dev/null +++ b/bin/composer-post-install-script.php @@ -0,0 +1,27 @@ + 'config/autoload/local.php.dist', + 'destination' => 'config/autoload/local.php', + ], +]; + +array_walk($files, 'copyFile'); diff --git a/composer.json b/composer.json index d18930f..9a450eb 100644 --- a/composer.json +++ b/composer.json @@ -78,6 +78,9 @@ "post-create-project-cmd": [ "@development-enable" ], + "post-update-cmd": [ + "php bin/composer-post-install-script.php" + ], "development-disable": "laminas-development-mode disable", "development-enable": "laminas-development-mode enable", "development-status": "laminas-development-mode status",