2015-12-10 30 views
-1


我用下面的命令作曲家安裝Sylius使用分支dev-master/0.16.x-dev)並想更新。作曲家更新一次提交Sylius例如

我輸入composer update與成功運行,但我的本地文件沒有更新到最新版本(值得一提的是sylius仍然是在同一個版本0.16.x-dev,所以有沒有新版本的同時,

莫非你告訴我,我怎麼可以更新我的消息來源爲最新提交使用composer

composer.json文件:

{ 
"name":  "sylius/sylius", 
"type":  "project", 
"description": "E-Commerce platform for PHP, based on Symfony framework.", 
"license":  "MIT", 
"homepage": "http://sylius.org", 
"authors": [ 
    { 
     "name":  "Paweł Jędrzejewski", 
     "homepage": "http://pjedrzejewski.com" 
    }, 
    { 
     "name":  "Sylius project", 
     "homepage": "http://sylius.org" 
    }, 
    { 
     "name":  "Community contributions", 
     "homepage": "http://github.com/Sylius/Sylius/contributors" 
    } 
], 
"require": { 
    "php": ">=5.5.9", 
    "ext-exif": "*", 
    "ext-fileinfo": "*", 
    "ext-gd": "*", 

    "a2lix/translation-form-bundle": "~2.0", 
    "doctrine/collections": "~1.2", 
    "doctrine/common": "~2.5", 
    "doctrine/doctrine-bundle": "~1.3", 
    "doctrine/doctrine-cache-bundle": "~1.0", 
    "doctrine/doctrine-fixtures-bundle": "~2.2", 
    "doctrine/doctrine-migrations-bundle": "~1.0", 
    "doctrine/orm": ">=2.4.8,<2.5", 
    "doctrine/phpcr-odm": "^[email protected]", 
    "friendsofsymfony/elastica-bundle": "^3.0.2", 
    "friendsofsymfony/oauth-server-bundle": "~1.4", 
    "friendsofsymfony/rest-bundle": "~1.5", 
    "fzaninotto/faker": "~1.2", 
    "hwi/oauth-bundle": "~0.3", 
    "incenteev/composer-parameter-handler": "~2.0", 
    "jackalope/jackalope": "^1.1.4", 
    "jackalope/jackalope-doctrine-dbal": "^1.1.2", 
    "jms/serializer-bundle": "~0.13", 
    "jms/translation-bundle": "~1.1", 
    "knplabs/knp-gaufrette-bundle": "~0.1", 
    "knplabs/knp-menu-bundle": "~1.1", 
    "knplabs/knp-snappy-bundle": "~1.2", 
    "liip/imagine-bundle": "~1.0", 
    "omnipay/omnipay": "~2.3", 
    "payum/omnipay-bridge": "~1.0", 
    "payum/payum": "~1.0", 
    "payum/payum-bundle": "~1.0", 
    "sensio/distribution-bundle": "~2.3", 
    "stof/doctrine-extensions-bundle": "~1.1", 
    "swiftmailer/swiftmailer": "~5.0", 
    "symfony-cmf/block-bundle": "~1.2", 
    "symfony-cmf/content-bundle": "~1.2", 
    "symfony-cmf/create-bundle": "~1.2", 
    "symfony-cmf/media-bundle": "~1.2", 
    "symfony-cmf/menu-bundle": "~1.2", 
    "symfony-cmf/routing-bundle": "~1.2", 
    "symfony/assetic-bundle": "^2.6", 
    "symfony/event-dispatcher": "^2.7", 
    "symfony/expression-language": "^2.7", 
    "symfony/form": "^2.7", 
    "symfony/framework-bundle": "^2.7", 
    "symfony/intl": "^2.7", 
    "symfony/monolog-bundle": "^2.7", 
    "symfony/options-resolver": "^2.7", 
    "symfony/property-access": "^2.7", 
    "symfony/swiftmailer-bundle": "^2.3", 
    "symfony/symfony": "^2.7.7", 
    "symfony/twig-bundle": "^2.7", 
    "symfony/polyfill-iconv": "~1.0", 
    "symfony/polyfill-intl-icu": "~1.0", 
    "symfony/polyfill-mbstring": "~1.0", 
    "twig/extensions": "~1.0", 
    "twig/twig": "~1.11", 
    "white-october/pagerfanta-bundle": "~1.0", 
    "willdurand/hateoas-bundle": "~0.4", 
    "winzou/state-machine-bundle": "~0.2", 
    "ocramius/proxy-manager": "^1.0", 
    "symfony/proxy-manager-bridge": "^2.7" 
}, 
"require-dev": { 
    "phpspec/phpspec": "^2.4", 
    "behat/behat": "~3.0", 
    "behat/symfony2-extension": "~2.0", 
    "behat/mink-extension": "~2.0", 
    "behat/mink-browserkit-driver": "~1.2", 
    "behat/mink-selenium2-driver": "~1.2", 
    "behat/mink": "~1.6", 
    "akeneo/phpspec-skip-example-extension": "~1.2", 
    "coduo/php-matcher": "~1.0", 
    "lakion/mink-debug-extension": "^1.0.1", 
    "phpunit/phpunit": "~4.1" 
}, 
"replace": { 
    "sylius/addressing":   "0.16.x-dev", 
    "sylius/addressing-bundle": "0.16.x-dev", 
    "sylius/api-bundle":   "0.16.x-dev", 
    "sylius/archetype":   "0.16.x-dev", 
    "sylius/archetype-bundle": "0.16.x-dev", 
    "sylius/attribute":   "0.16.x-dev", 
    "sylius/attribute-bundle": "0.16.x-dev", 
    "sylius/cart":    "0.16.x-dev", 
    "sylius/cart-bundle":  "0.16.x-dev", 
    "sylius/contact":   "0.16.x-dev", 
    "sylius/contact-bundle":  "0.16.x-dev", 
    "sylius/content":   "0.16.x-dev", 
    "sylius/content-bundle":  "0.16.x-dev", 
    "sylius/core":    "0.16.x-dev", 
    "sylius/core-bundle":  "0.16.x-dev", 
    "sylius/currency":   "0.16.x-dev", 
    "sylius/currency-bundle": "0.16.x-dev", 
    "sylius/fixtures-bundle": "0.16.x-dev", 
    "sylius/flow-bundle":  "0.16.x-dev", 
    "sylius/installer-bundle": "0.16.x-dev", 
    "sylius/inventory":   "0.16.x-dev", 
    "sylius/inventory-bundle": "0.16.x-dev", 
    "sylius/locale":    "0.16.x-dev", 
    "sylius/locale-bundle":  "0.16.x-dev", 
    "sylius/money-bundle":  "0.16.x-dev", 
    "sylius/order":    "0.16.x-dev", 
    "sylius/order-bundle":  "0.16.x-dev", 
    "sylius/payment":   "0.16.x-dev", 
    "sylius/payment-bundle":  "0.16.x-dev", 
    "sylius/payum-bundle":  "0.16.x-dev", 
    "sylius/pricing":   "0.16.x-dev", 
    "sylius/pricing-bundle":  "0.16.x-dev", 
    "sylius/product":   "0.16.x-dev", 
    "sylius/product-bundle":  "0.16.x-dev", 
    "sylius/promotion":   "0.16.x-dev", 
    "sylius/promotion-bundle": "0.16.x-dev", 
    "sylius/rbac":    "0.16.x-dev", 
    "sylius/rbac-bundle":  "0.16.x-dev", 
    "sylius/registry":   "0.16.x-dev", 
    "sylius/report":    "0.16.x-dev", 
    "sylius/report-bundle":  "0.16.x-dev", 
    "sylius/resource":   "0.16.x-dev", 
    "sylius/resource-bundle": "0.16.x-dev", 
    "sylius/search":    "0.16.x-dev", 
    "sylius/search-bundle":  "0.16.x-dev", 
    "sylius/sequence":   "0.16.x-dev", 
    "sylius/sequence-bundle": "0.16.x-dev", 
    "sylius/settings-bundle": "0.16.x-dev", 
    "sylius/shipping":   "0.16.x-dev", 
    "sylius/shipping-bundle": "0.16.x-dev", 
    "sylius/storage":   "0.16.x-dev", 
    "sylius/taxation":   "0.16.x-dev", 
    "sylius/taxation-bundle": "0.16.x-dev", 
    "sylius/taxonomy":   "0.16.x-dev", 
    "sylius/taxonomy-bundle": "0.16.x-dev", 
    "sylius/translation":  "0.16.x-dev", 
    "sylius/translation-bundle": "0.16.x-dev", 
    "sylius/user":    "0.16.x-dev", 
    "sylius/user-bundle":  "0.16.x-dev", 
    "sylius/variation":   "0.16.x-dev", 
    "sylius/variation-bundle": "0.16.x-dev", 
    "sylius/web-bundle":   "0.16.x-dev" 
}, 
"suggest": { 
    "ext-iconv": "For better performance than using Symfony Polyfill Component", 
    "ext-intl": "For better performance than using Symfony Polyfill Component", 
    "ext-mbstring": "For better performance than using Symfony Polyfill Component" 
}, 
"scripts": { 
    "travis-build": [ 
     "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
     "Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreateAndCkeditor" 
    ], 
    "post-install-cmd": [ 
     "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
     "Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreateAndCkeditor", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
    ], 
    "post-update-cmd": [ 
     "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
     "Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreateAndCkeditor", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
     "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
    ] 
}, 
"autoload": { 
    "psr-0": { "Sylius\\": "src/" } 
}, 
"config": { 
    "bin-dir": "bin" 
}, 
"extra": { 
    "branch-alias": { 
     "dev-master": "0.16-dev" 
    }, 
    "incenteev-parameters": { 
     "file": "app/config/parameters.yml" 
    }, 
    "symfony-app-dir": "app", 
    "symfony-web-dir": "web" 
} 

}

+0

您可以發佈您composer.json文件? – gvf

+0

所以在供應商或src文件夾中的Sylius文件? – gvf

+0

@gvf在src文件夾中。 – Starspire

回答

1

去的src/Sylius並做git的初始化,然後遠程Git添加起源[email protected]:Sylius/Sylius.git 然後混帳拉