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

Updated coding conventions for PSR-2 #6379

Merged

Conversation

chillu
Copy link
Member

@chillu chillu commented Dec 8, 2016

See #6340
See #6376

I've removed the conventions for underscores in class names (e.g. Page_Controller), which might be contentious - how are we expecting auto-mapping between page types and their controller in a PSR-2 world? Page => PageController?

@helpfulrobot
Copy link

@chillu, thanks for your PR! By analyzing the blame information on this pull request, I identified @dhensby to be a potential reviewer

@tractorcow
Copy link
Contributor

Merged in changes, waiting for tests to finish.

@dhensby
Copy link
Contributor

dhensby commented Dec 14, 2016

merging in changes ain't the best as they won't be PSR-2?

@ingo regarding controller name changes, that's fine IMO we can provide BC through the SiteTree@getControllerName method if we like?

You'll need to patch that method, though

@chillu
Copy link
Member Author

chillu commented Dec 15, 2016

I've created a ticket for fixing SiteTree->getControllerName(): #6403

@tractorcow tractorcow merged commit fd9ee8a into silverstripe:master Dec 18, 2016
@tractorcow tractorcow deleted the pulls/4.0/psr-coding-conventions branch December 18, 2016 20:41
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

4 participants