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

Commit 8639ae4

Browse files
committed
minor #749 Fixed SensioDistributionBundle requirements (valeriangalliat)
This PR was submitted for the master branch but it was merged into the 2.5 branch instead (closes #749). Discussion ---------- Fixed SensioDistributionBundle requirements The 3.0.12 version introduces the `removeSymfonyStandardFiles` method in `Sensio\Bundle\DistributionBundle\Composer\ScriptHandler` which is required for the `post-install` and `post-update` scripts. When the cURL PHP extension is not installed, Composer will install the 3.0.11 version of SensioDistributionBundle which don't depends on cURL, but the scripts requiring the `removeSymfonyStandardFiles` method will fail. By requiring at least the 3.0.12 version, we ensure Composer will abort with an helpful error, saying that `ext-curl` needs to be installed. Before: Method Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::removeSymfonyStandardFiles is not callable, can not call post-install-cmd script After: Your requirements could not be resolved to an installable set of packages. Problem 1 - sensiolabs/security-checker v2.0.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. - sensio/distribution-bundle v3.0.12 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.0]. - Installation request for sensio/distribution-bundle ~3.0.12 -> satisfiable by sensio/distribution-bundle[v3.0.12]. Commits ------- 90c196e Fixed SensioDistributionBundle requirements
2 parents 76e621b + 90c196e commit 8639ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"symfony/assetic-bundle": "~2.3",
1616
"symfony/swiftmailer-bundle": "~2.3",
1717
"symfony/monolog-bundle": "~2.4",
18-
"sensio/distribution-bundle": "~3.0",
18+
"sensio/distribution-bundle": "~3.0.12",
1919
"sensio/framework-extra-bundle": "~3.0",
2020
"incenteev/composer-parameter-handler": "~2.0"
2121
},

0 commit comments

Comments
 (0)