Remove deprecated code#6210
Conversation
8a021c0 to
02f45e8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
02f45e8 to
bb7ba5b
Compare
|
The remaining fails are related to the translator... On the other hand, I applied almost all the @Final since 3.x but I cannot do all because we are mocking them and some of them do not have interfaces, should we introduce them? should I try to not mock those classes instead? @VincentLanglet And there is another NEXT_MAJOR comment that I dont know how to solve, maybe you know: and |
|
@jordisala1991 You're still having an issue with phpstan: And I think you can fix
I already found some issue like this, see #6005 (comment) Depending on the situation I would promote an Interface.
I think it's related to #6005 (comment) When we tried to add typehint, the type wasn't always clear. |
bb7ba5b to
bd06d50
Compare
bd06d50 to
79bd5e1
Compare
|
All test fixed, there are only 1 failing because of the export thing (I think I fixed some wrong code, but test do not pass because now the labels are not translated here). The thing is, are those labels translated somewhere else? @core23 do you know? If I have to revert this change, it will be huge, because I will have to recover a lot of deprecated things just to make this test pass |
64be20d to
6502494
Compare
This comment has been minimized.
This comment has been minimized.
6502494 to
33b580c
Compare
|
A changelog/upgrade note will be needed for some changes
And maybe others... |
33b580c to
91d0a3d
Compare
This comment has been minimized.
This comment has been minimized.
91d0a3d to
d1e79a8
Compare
I think on the upgrade note side we are already covering most of the things because we have this: |
d1e79a8 to
d795cdf
Compare
I haven't so much knowlage about it but think we should avoid using two diffrence datagrid. It is confusing.
IMHO it should be add to Sonata 5 milestones. |
|
I like the @VincentLanglet idea of moving to DatagridBundle, but anyway it is outside the scope of this PR. (which is removing already deprecated code from 3.x 😅) |
wbloszyk
left a comment
There was a problem hiding this comment.
It's look OK, but will be nice to replace controller:
<route id="sonata_admin_search" path="/search">
<default key="_controller">Sonata\AdminBundle\Action\SearchAction</default>
</route>to:
<route id="sonata_admin_search" path="/search" controller="sonata.admin.action.search"/>|
I think we have already make to much changes on this PR, I would like to avoid doing more things if they are not needed (I plan on doing several PRs after this one, but they are currently blocked by this one. |
|
I agree. The question is not "are some others changes needed ?" but "are all the made changes ok ?". |
e424142
3d9d2e9 to
e424142
Compare
phansys
left a comment
There was a problem hiding this comment.
I just left a small suggestion at UPGRADE-3.x.md. I think this is RTM.
|
Well, they are correct to me, but that's why we are here, to review them. I will give another round myself too. |
|
Do you agree on squash until this point? @VincentLanglet ? To keep this PR more clean |
|
Sure |
5b6bb29 to
d2edd54
Compare
|
Squashed into 2 commits, first one is the big one with everything until this point, and second one is a removal of an unused property derived from the deprecation of help here: https://github.com/sonata-project/SonataAdminBundle/pull/6215/files#diff-403e5bfbb6be15413148a2bba5343aff |
|
Thanks @jordisala1991 ! |
Subject
I am targeting this branch, because this is a BC Break
Changelog