Contributing to open source bundles from vendor directory?

前端 未结 4 1431
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-04 22:06

Ideal Situation

Often while working on a Symfony2 project I will spot something I want to change in one of my dependencies. If I could find a way to

4条回答
  •  囚心锁ツ
    2020-12-04 22:47

    FYI, I just tried the very first option:

        "repositories": [{
        "type": "vcs",
        "url": "https://github.com/thujohn/twitter"
    }],
    "require": {
        "laravel/framework": "4.2.*",
        "thujohn/twitter": "dev-master",
        "anahkiasen/flickering": "^0.1.2",
        "fairholm/elasticquent": "dev-master",
        "facebook/php-sdk-v4" : "~5.0"
    },
    

    An it worked fine.

    vagrant@dev:/var/www$ sudo php composer.phar update
    Loading composer repositories with package information                                                                                                                                                         Updating dependencies (including require-dev)         
      - Removing thujohn/twitter (2.0.4)
      - Installing thujohn/twitter (dev-master 7a92118)
        Downloading: 100%         
    
    Writing lock file
    Generating autoload files
    > php artisan clear-compiled
    > php artisan optimize
    Generating optimized class loader
    

    I just needed to specify the "master" branch name as "dev-master".

提交回复
热议问题