-
Notifications
You must be signed in to change notification settings - Fork 184
Add support of Symfony 3 and drop support for Symfony < 2.7 #289
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
Conversation
5b52ce8 to
ac6d06a
Compare
| - php: 5.3 | ||
| env: | ||
| - deps=low | ||
| - SYMFONY_VERSION=2.7.* |
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 looks useless and might hide forgotten dependencies, wdyt?
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.
Can you explain a bit more your idea? I don't understand why it would hide dependencies.
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.
Because you are always loading symfony entirely and you might depend on symfony libraries not included in the real composer file.
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.
We are requiring the framework bundle, not Symfony entirely, and we do require the framework bundle in the composer.json.
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.
Indeed sorry, i'm used to libraries loading the entire framework...
That's fine for me then 👍
|
Given the BC break we have for the controller (and the potential other BC breaks we will get in the future), I suggest we adopt the same principles than Symfony:
What do you think? |
|
Imo this belongs to a minor version (that's not a bug fix) so i would merge everything in master. |
|
I tend to agree. After all, relying on the extends is quite specific and shouldn't be a problem. I still would like to set master as 2.0-dev though (by putting all the depreciations introduced in this PR in the 1.2 branch instead of master). Do you think it would be a problem? |
|
@tgalopin i don't think there are enough deprecations to release 2.0 (moreover they are not locking new features) so imo master should target 1.3. |
|
Keep in mind there are technically 88 commits in 1.3 then :) (https://github.com/FriendsOfSymfony/FOSMessageBundle/tree/1.2). Last release of 1.2 was 3 years ago :/ . |
|
Is it a problem if they are all bc? |
|
No, technically not. I will merge in master then. |
|
For example we released fosrestbundle 2.0 because we wanted many features requiring bc breaks. |
2682c1e to
6719a8f
Compare
|
What I had in mind is not related to which release we choose (I was going to release 1.3 anyway), simply I wanted to start to prepare master as 2.0 by removing the depreciation from it. I updated the PR, don't hesitate to recheck :) . |
|
If you don't plan to release 2.0 soon it will only add maintenance cost (you'll need to merge 1.3 in master each time your merge a pr), that's why sf didn't create a 4.0 branch btw. |
| * Sets the container. | ||
| * | ||
| * @param ContainerInterface|null $container A ContainerInterface instance or null | ||
| */ |
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 doc bloc brings no value imo
|
Thanks for the great work ! That's a big task... |
That's true. I will see how the releases evolve and create a 2.0 if enough deprecations will be removable. Thanks for the review, I'm fixing the comments. |
6719a8f to
4e6c19e
Compare
|
Updated. I think this is mergeable (I'll dedicate a PR for CS). |
Based on #288 for the coding style improvements and especially on #283. Thanks @DenisMedved, @dfridrich, @bassrock and @ubermuda for your awesome work!
This PR adds support for Symfony 3 by implementing non-BC-break new features and implementing a a BC layer for the other. Any test would be awesome :) ! I tried with a demo project and it's working fine, but feel free to try it more extensively :) !