-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add composer.json #51
Conversation
|
||
"require": { | ||
"php": ">=5.3.2", | ||
"imagine/Imagine": "master-dev" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is wrong. First, master-dev
does not exist anymore, and second, you should not depend on it (it would imply that you can guarantee the compatibility with any future state of the master branch)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, and the bundle depends on FrameworkBundle too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this should just be "*" instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, *
is bad too. Do you know any future release of Imagine to ensure that your current release of the bundle will always work with them ? No. So you need an upper bound on the constraint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I feel incredibly dumb :p That's pretty obvious, especially after you explain it a second time. Thanks. I'll fix it later today.
ping .. |
"require": { | ||
"php": ">=5.3.2", | ||
"imagine/Imagine": "<=0.2.8", | ||
"symfony/framework-bundle": "2.0.*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the bundle is compatible with 2.1 too AFAIK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup
@stof, would "2.0., 2.1." do the job on that? |
@iampersistent no. the comma is a AND, not a OR. you need to expand the constraint manually for this: |
@stof, thanks, I appreciate you being patient and educating me |
I can't promise it works, I'm just starting to play with composer. I'll get it working if its wrong.