I got following propblem:
I have 6 private repositories on bitbucket
- app
- implementation1
- implementation2
- core
- bundle1
- bundle2
App is my main - "root" package. Now the app can have multiple implementations in composer.json along with core package and than core has multiple bundles in its composer.json
The problem is that when I use
composer install
in my core package - it normally downloads bundle1 along with bundle2 inside core/vendor folder.
But when I try to install packages from app - it gives me following error:
Problem 1
- Installation request for company/app-core-bundle dev-master -> satisfiable by company/app-core-bundle[dev-master].
- company/app-core-bundle dev-master requires company/app-bundle1-bundle * -> no matching package found.
The workaround I've found is to specify all repositories in app/composer.json but it's bad solution and it's not what dependencies are used for.
Here are 2 parts of composer.json:
app/composer.json
{ "name": "company/app", "version": "master", "type": "project", "minimum-stability": "dev", "license": "proprietary", "repositories": [ { "type": "git", "url":"git@bitbucket.org:username/company-app-core.git" } ], "require": { "php": ">=5.5.9", ... "company/app-core-bundle": "dev-master" } }
company-app-core/composer.json
{ "name": "company/app-core-bundle", "version": "master", "type": "symfony-bundle", "minimum-stability": "dev", "license": "proprietary", "repositories": [ { "type": "git", "url":"git@bitbucket.org:username/company-app-bundle1.git" }, { "type": "git", "url":"git@bitbucket.org:username/company-app-bundle2.git" } ], "require": { "php": ">=5.5", "company/app-bundle1-bundle": "*", "company/app-bundle2-bundle": "*" } }
company-app-bundle1/composer.json
{ "name": "company/app-bundle1-bundle", "version": "master", "type": "symfony-bundle", "minimum-stability": "dev", "license": "proprietary", "require": { "php": ">=5.5", ... some other 3rd company bundles like FOS } }
It's a 2 level dependency, my repos have to be private and I don't want to play around with Satis right now.
Thanks for any help. :)
app-bundle1-bundle
intoapp
'srepositories
? – Kuba T