I have a forked symfony repository in GitHub and I pushed some code to the 2.4 branch. How can I make Composer use this specific branch?
composer.json:
"require" : {
...
"symfony/symfony" : "dev-2.4"
},
"repositories" : {
"type" : "vcs",
"url" : "https://github.com/tamirvs/symfony"
}
But I get The requested package symfony/symfony dev-2.4 could not be found
.
I've also tried 2.4-dev
and 2.4
but I get the same error..
All the info I found on the web got me to what I've already tried.. any ideas?
Please note, that when setting the version to 2.4.* the repository is pulled but without my commits..
I think you'll need to use 2.4.x-dev
, as outlined in the documentation.
For example a branch 2.0 will get a version 2.0.x-dev (the .x is added for technical reasons, to make sure it is recognized as a branch, a 2.0.x branch would also be valid and be turned into 2.0.x-dev as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With