-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Remove Cache #1430
Remove Cache #1430
Conversation
@Hanmac I guess you need to rebase your branch |
i think i need to wait for this until the CI has merged 3.x into 4.x |
I thought that Vincent has merged it, my bad |
Now it is merged, please rebase. |
Could you please rebase your PR and fix merge conflicts? |
@@ -312,33 +291,6 @@ public function getConfigTreeBuilder() | |||
->end() | |||
->end() | |||
|
|||
->arrayNode('caches') |
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 need to trigger a deprecation for this node on 3.x
@@ -365,9 +317,6 @@ public function getConfigTreeBuilder() | |||
->booleanNode('direct_publication') | |||
->info($directPublicationInfo) | |||
->defaultValue(false) | |||
->end() | |||
->booleanNode('cache') |
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.
I assume we have to keep this option for now in to order to avoid a BC break without any deprecation.
The default value should be change to false to be consistent and the option will not be used and removed only on 5.x.
On 4.x it will trigger a deprecation when set.
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 could deprecate it in 3x?
@jordisala1991, just saw you approved. |
Not sure if we need upgrade note, since everything was deprecated and we have a default note for deprecated code. Wdyt @VincentLanglet ? |
We just didn't directly deprecated the removed class/config. For the config, you can still use
and others cache config without any warning. For the classes, if someone is using I would say it doesn't cost us too much to add
on classes, and call Do you mind doing a PR on 3.x @Hanmac ? |
Deprecated the Cache classes, and the config options: |
Thanks, I merged 3.x into 4.x so there is just some conflicts to solve |
Could you please rebase your PR and fix merge conflicts? |
# Conflicts: # composer.json # src/Admin/BaseBlockAdmin.php # src/Admin/PageAdmin.php # src/Admin/SnapshotAdmin.php # src/Cache/BlockEsiCache.php # src/Cache/BlockJsCache.php # src/Cache/BlockSsiCache.php # src/DependencyInjection/Configuration.php # src/DependencyInjection/SonataPageExtension.php # src/Resources/config/admin.xml # src/SonataPageBundle.php # tests/App/AppKernel.php
Subject
I am targeting this branch, because it is BC break.
Changelog
To do