php - How to tell composer to use a branch of my fork? -


in symfony2 project, using "jms/serializer-bundle" , have issue 1 of dependencies, namely jms/metadata libary. have forked metadata library , included fix in bugfix-doctrine-proxy branch.

now wondering how tell composer, should use branch when requiring dependency?

the composer.json of serializer library:

{     "name": "jms/serializer",     "type": "library",     ...     ],     "require": {         "php": ">=5.3.2",         "jms/metadata": "~1.1",         "jms/parser-lib": "1.*",         "phpcollection/phpcollection": "~0.1",         "doctrine/annotations": "1.*"     },     ... } 

my symfony2-project composer.json:

{     ...     "repositories": [         {             "type": "git",             "url": "git@github.com:hauptsachenet/metadata.git"         }     ],     "require": {         "jms/serializer-bundle": "dev-master",         ...     } } 

the answer use branch alias:

{ "repositories": [         {             "type": "git",             "url": "git@github.com:hauptsachenet/metadata.git"         }     ],     "require": {         "jms/metadata": "dev-bugfix-doctrine-proxy-class 1.1",     }, } 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -