Skip to content
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 API which will be removed in CMS 6 #11526

Merged

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Jan 6, 2025

All of this was either incorrectly deprecated already or should have already been removed in CMS 5.
See comments in #11524

Issues

@@ -1037,9 +1038,11 @@ public static function get_environment_type()
* @param HTTPRequest $request
*
* @return string|null null if not overridden, otherwise the actual value
* @deprecated 5.4.0 Use get_environment_type() instead.
*/
public static function get_session_environment_type(HTTPRequest $request = null)
Copy link
Member Author

@GuySartorelli GuySartorelli Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #11524 (comment)

Yes this is marked as @internal and we could technically remove it in 5.4, but it seems sensible to just deprecate and remove like we would with other public methods.

@@ -8,6 +8,7 @@

/**
* Implements switching user session into Test and Dev environment types
* @deprecated 5.4.0 Will be removed without equivalent functionality to replace it.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emteknetnz emteknetnz merged commit 06240b6 into silverstripe:5 Jan 7, 2025
18 checks passed
@emteknetnz emteknetnz deleted the pulls/5/deprecate-more branch January 7, 2025 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants