-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Upgrade Sonatablock and SonataSeo #1448
Conversation
7525b01
to
8bc6056
Compare
8bc6056
to
541fa4b
Compare
<argument>sonata.page.block.breadcrumb</argument> | ||
<argument type="service" id="sonata.templating"/> | ||
<argument type="service" id="knp_menu.menu_provider"/> | ||
<argument type="service" id="twig"/> |
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.
Are all those changes correct?
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.
ContainerBlockService from SonataBlockBundle is a final, I have to decorate, so give it in argurment
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.
Seo has been updated, BaseBreadcrumbMenuBlockService need twig and FactoryInterface(KNP). Plus, sonata.templating disappear from the project
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.
where are you decorating the "SonataBlockBundle"?
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.
BlockContextManager & ContainerBlockService
Could you please rebase your PR and fix merge conflicts? |
should be good provide a list of well I'm a bit afraid to say that it's fine to merge, because I can see too much changes and any new test created and if you see, block and admin folder are with low test coverage, then I don't know :/ @Daric971 after you made all those changes every thing works as expected? |
Maybe the first things to do would be to open a PR on 4.x to improve the coverage then |
maybe just cover the code that will be changed before change is reasonable. specially when you are not sure how everything works! and probably we can find code that is not necessary, and leads to create a simple solution. |
Increasing phpstan and psalm also gives confidence |
I'm gonna try this change in my project |
There is also some conflitct on the pr |
541fa4b
to
7a24620
Compare
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.
Changes on the Form folder should be reverted (they should be handlded on another PR)
Could you please rebase your PR and fix merge conflicts? |
2904e7e
to
a0f473d
Compare
Can you revert the change done in the Form folder @Daric971 ? We'll add all the typehint in another PR. |
$this->optionsResolver = new OptionsResolver(); | ||
} | ||
|
||
public function getOptionsResolver(): OptionsResolver |
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 method is not part of the interface
Could you please rebase your PR and fix merge conflicts? |
a0f473d
to
ec45672
Compare
Could you please rebase your PR and fix merge conflicts? |
ec45672
to
280d63f
Compare
280d63f
to
dee879a
Compare
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 almost there.
return 'sonata.page.block.pagelist'; | ||
} | ||
|
||
public function buildEditForm(AdminFormMapper $form, BlockInterface $block): void |
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 code inside this method should go to the configureEditForm instead right?
Do you mind if I start a PR on top of your commits to move this faster? currently we are blocked because we need this PR merged. |
This continues here: #1483 |
Subject
I am targeting this branch, because I updated to allow version 3 of sonataSeo
Closes #{put_issue_number_here}.
Changelog