Skip to content

Commit

Permalink
Add composer post install and post update hooks to clear config cache
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksei Khudiakov <[email protected]>
  • Loading branch information
Xerkus committed Feb 23, 2023
1 parent 4f60efe commit 4245cef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@
"post-create-project-cmd": [
"@development-enable"
],
"post-install-cmd": "@clear-config-cache",
"post-update-cmd": "@clear-config-cache",
"development-disable": "laminas-development-mode disable",
"development-enable": "laminas-development-mode enable",
"development-status": "laminas-development-mode status",
Expand All @@ -117,5 +119,8 @@
],
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
},
"scripts-descriptions": {
"clear-config-cache": "Clears merged config cache. Required for config changes to be applied."
}
}

0 comments on commit 4245cef

Please sign in to comment.