我有一个新的 symfony 应用程序、一个 satis 安装(内部包管理器)和 2 个捆绑包。
该应用程序需要捆绑包 1。
捆绑 1 需要捆绑 2。
Bundle 2 需要来自 packagist 的附加包。
在应用程序上运行 composer update 时,它失败了,指出“bundle1 dev-master 需要 bundle2 dev-master -> 找不到匹配的包。
然而...
当我修改应用程序以同时需要捆绑包 1 和 2 时,一切都按预期进行。
我在这里做错了什么?
应用程序composer.json:
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"repositories": [
{
"type": "composer",
"url": "http://bundles.internalservername.com"
}
],
"require": {
"php": ">=5.3.3",
"symfony/symfony": "~2.4",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~3.0",
"sensio/generator-bundle": "~2.3",
"incenteev/composer-parameter-handler": "~2.0",
"ec/data/feeds/product-pool-data-service-bundle": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"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",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.4-dev"
}
}
}
捆绑包 1 (ec/data/feeds/product-pool-data-service-bundle) composer.json:
{
"name": "ec/data/feeds/product-pool-data-service-bundle",
"type": "symfony-bundle",
"description": "Data Service Bundle for Feeds Product Pool",
"keywords": ["data", "product pool", "feeds"],
"homepage": "http://internalservername.com/projects/ec/repos/productpooldataservicebundle/browse",
"license": "MIT",
"repositories": [
{
"type": "composer",
"url": "http://bundles.internalservername.com"
}
],
"require": {
"php": ">=5.3.2",
"ec/generic-service-bundle": "dev-master"
},
"require-dev": {
"symfony/framework-bundle": ">=2.1,<2.2-dev"
},
"autoload": {
"psr-0": { "Ec\\ProductPoolDataServiceBundle": "" }
},
"minimum-stability": "dev",
"target-dir": "",
"version": "0.0.1-dev"
}
捆绑包 2 (ec/generic-service-bundle) composer.json
{
"name": "ec/generic-service-bundle",
"type": "symfony-bundle",
"description": "Generic service bundle that all Ec REST services will extend.",
"keywords": ["generic", "service", "ecentria", "rest"],
"homepage": "http://internalservername.com/projects/EC/repos/genericservicebundle/browse",
"license": "MIT",
"repositories": [
{
"type": "composer",
"url": "http://bundles.internalservername.com"
}
],
"require": {
"php": ">=5.3.2",
"friendsofsymfony/rest-bundle": "1.3.*",
"jms/serializer-bundle": "0.13.*",
"willdurand/rest-extra-bundle": "@stable"
},
"require-dev": {
"symfony/framework-bundle": ">=2.1,<2.2-dev"
},
"autoload": {
"psr-0": { "Ec\\GenericServiceBundle": "" }
},
"minimum-stability": "dev",
"target-dir": "Ec/GenericServiceBundle",
"version": "0.0.1-dev"
}