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

Road to Router Part 1: Encapsulate legacy module functions in a BaseModule-inherited class #5979

Merged
merged 3 commits into from
Oct 21, 2018

Conversation

MrPetovan
Copy link
Collaborator

@MrPetovan MrPetovan commented Oct 21, 2018

Still eager to shave as many lines from index.php as possible, here comes the newest improvement: no more conditional to figure if we're dealing with a BaseModule class or global module functions.

The latter are now encapsulated in the LegacyModule class.

This may or may not pave the way for a fancier routing mechanism, but at least it's that many fewer conditionals in index.php.

@MrPetovan MrPetovan added this to the 2018.12 milestone Oct 21, 2018
@annando annando merged commit f14dae8 into friendica:develop Oct 21, 2018
@MrPetovan MrPetovan deleted the task/mock-legacy-module branch October 21, 2018 11:38
@MrPetovan MrPetovan changed the title Encapsulate legacy module functions in a BaseModule-inherited class Road to Router Part 1: Encapsulate legacy module functions in a BaseModule-inherited class Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants