【发布时间】:2017-01-28 22:51:20
【问题描述】:
我必须保持 0.18 的 sylius/sylius
我已经 fork master 并创建了一个新的分支 0.18,合并到一些 PR 中。
现在我想使用这个存储库而不是 sylius/sylius v0.18 标签
这里是我的 composer.json
{
"name": "sylius/sylius-standard",
"description": "Starting point for projects powered by Sylius eCommerce.",
"keywords": ["symfony", "symfony2", "sylius", "distribution", "ecommerce", "cart", "shopping"],
"type": "project",
"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"
}
],
"repositories": [
{
"type": "vcs",
"url": "https://github.com/ibasaw/DoctrineBehaviors"
},
{
"type": "vcs",
"url": "https://github.com/ibasaw/sylius"
}
],
"require": {
"php": ">=5.6",
"sylius/sylius": "^0.18@dev",
......
},
"require-dev": {
"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",
"coduo/php-matcher": "^2.1@dev",
"phpspec/phpspec": "^2.4",
"phpunit/phpunit": "^4.1",
"lakion/api-test-case": "^1.0@dev"
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"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": {
"": "src/",
"Context": "features/"
}
},
"config": {
"bin-dir": "bin"
},
"extra": {
"branch-alias": {
"dev-master": "0.18"
},
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}
}
当我进行作曲家更新时,在供应商目录中它需要 sylius/sylius 而不是 ibasaw/sylius
为什么?
如何在我的新分支 0.18 中强制使用 VCS?
【问题讨论】:
-
我已将 "branch-alias": { "dev-master": "0.18" } 替换为 "branch-alias": { "dev-master": "0.18-dev" }采取良好的存储库。但现在我遇到了这个问题:致命错误:第 9 行的 /var/www/sources/xxx/app/AppKernel.php 中找不到 Class 'Sylius\Bundle\CoreBundle\Kernel\Kernel'
-
主要是因为
Sylius\Bundle\CoreBundle\Kernel\Kernel在 v0.18 和 v0.19 之间被Sylius\Bundle\CoreBundle\Application\Kernel取代。您可以查看here
标签: git github composer-php sylius