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

Add a basic ContentLocale method to controller #10081

Closed
wants to merge 2 commits into from

Conversation

TheBnl
Copy link
Contributor

@TheBnl TheBnl commented Sep 1, 2021

Issue https://github.com/silverstripe/silverstripe-framework/issues/10080

Add a basic ContentLocale method to controller that doesn't check a dataRecord.

Add a basic ContentLocale method to controller that doesn't check a dataRecord.
Co-authored-by: Michal Kleiner <michal@michalkleiner.cz>
Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

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

I don't think Controller.php is really intended to serve content, that's what ContentController.php is for.

Reading through the issue, login-forms is a bit of a special case

I'm thinking a better approach would be to add the ContentLocale() method you've created and add it to https://github.com/silverstripe/silverstripe-login-forms/blob/4/src/EnablerExtension.php which is applied to Security.php

@michalkleiner
Copy link
Contributor

@TheBnl I've moved the issue to the login-forms module and I'll close this issue here.
Can you please create a new PR there with the method added to the EnablerExtension as @emteknetnz suggests? Thanks!

@michalkleiner
Copy link
Contributor

Moved issue — silverstripe/silverstripe-login-forms#100

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.

None yet

3 participants