문제

I am using svn for hosting my projects on unfuddle.com. All of them share some of my bundles that I would like to keep private.

Example:

I created d:bundles/ImageBundle folder and copied the code I already have. Structure is like any other symfony bundle, I have folders Controller, Entity etc inside it. Is it good way of doing it?

What should ImageBundle/composer.json have? When I try to install that bundle, I get this error:

Your requirements could not be resolved to an installable set of packages.

Problem 1 - The requested package wjb/image-bundle dev could not be found.

Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability....

Even when my programs' composer.json file has "wjb/image-bundle": "*" I get it.

My main composer.json also has this:

"repositories": [
    {
        "type": "vcs",
        "url":  "http://mysvnrepository" ,
        "trunk-path": "ImageBundle",
        "branches-path":false,
        "tags-path": false
    }
] 
도움이 되었습니까?

해결책

Composer says it has found the package put your project requires a higher stability:

The package is not available in a stable-enough version according to your minimum-stability....

To resolve the issue set the minimum stability to dev for that one package in your project's composer.json.

"wjb/image-bundle": "*@dev"

Read more on stability flags here.

You can also set minimum stability in your composer.json for your whole project to one of dev,alpha,beta,rc or stable. But as this will affect your whole project this is not recommended.

// ...
"require" : {
    // ... dependencies here
},
"minimum-stability" : "dev",
 // ...
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top