-
Notifications
You must be signed in to change notification settings - Fork 333
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
API Deprecate and update code in preparation for CMS 6 #3023
API Deprecate and update code in preparation for CMS 6 #3023
Conversation
* @deprecated 5.4.0 will be moved to SilverStripe\ORM\Hierarchy\Hierarchy->cache_allowedChildren | ||
*/ | ||
protected static $_allowedChildren = []; |
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 don't really have a process for deprecating non-config properties - and this one is very unlikely to be used by downstream devs anyway. I won't mention it in the changelog unless asked to.
/** | ||
* @deprecated 5.4.0 use class_description instead. | ||
*/ | ||
private static $description = 'Redirects requests to another location'; |
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.
Note that while I have added the deprecation notice to subclasses to ensure notices are emitted appropriately, I will only mention the config on SiteTree
being deprecated in the changelog.
78dadc2
to
32b21de
Compare
* | ||
* @return string|null | ||
*/ | ||
public function i18n_classDescription() |
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.
i18n_classDescription()
is removed here but will now exist on a parent class, so no need to deprecate.
Needs silverstripe/silverstripe-framework#11461 for CI to go green - please merge that PR first.
This PR deprecates code that will be removed in #3022, and adds the new
class_description
config.Note that there are a lot of methods in #3022 which are being removed from
SiteTree
but are being added to a superclass or to theHierarchy
extension in silverstripe/silverstripe-framework#11460. TheHierarchy
extension is required to be onSiteTree
for that class and CMSMain to work correctly, so the effect is that the methods are not removed from a downstream developer POV.Downstream developers can still override the methods in subclasses and call
parent::whatever()
as though the method was directly implemented onSiteTree
.Issue
SiteTree
inCMSMain
#2947