Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 72f0e3a

Browse files
committed
minor #918 Referencing scripts in composer.json to avoid duplication (1ed)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #918). Discussion ---------- Referencing scripts in composer.json to avoid duplication It's a new feature of composer ([referencing-scripts](https://getcomposer.org/doc/articles/scripts.md#referencing-scripts)) available as of [1.0.0-alpha11](https://github.com/composer/composer/releases/tag/1.0.0-alpha11). Commits ------- 4935d2c Referencing scripts to avoid duplication
2 parents d6d641d + 4935d2c commit 72f0e3a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

composer.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,19 @@
2323
"symfony/phpunit-bridge": "~2.7"
2424
},
2525
"scripts": {
26-
"post-install-cmd": [
26+
"symfony-scripts": [
2727
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
2828
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
2929
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
3030
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
3131
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
3232
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
3333
],
34+
"post-install-cmd": [
35+
"@symfony-scripts"
36+
],
3437
"post-update-cmd": [
35-
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
36-
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
37-
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
38-
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
39-
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
40-
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
38+
"@symfony-scripts"
4139
]
4240
},
4341
"config": {

0 commit comments

Comments
 (0)