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

chore: remove Singleton & replace getIApp with getApp #5514

Merged
merged 25 commits into from
Jul 21, 2024

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Jul 20, 2024

This removes the Singleton base class of the remaining controllers/singletons, and manually calls their initialize/save if necessary instead, with only the necessary parameters.

With this change, I've gone made the getApp() function call return the IApplication* interface (like getIApp() did), so we can have one single "get god class" function.
It's been possible for a little bit already, but now everything that must be accessible is accessible through the IApplication interface

@pajlada pajlada force-pushed the chore/unsingletonize-more-things branch from 383ec13 to 044996e Compare July 21, 2024 11:55
@pajlada pajlada marked this pull request as ready for review July 21, 2024 11:55
@pajlada pajlada changed the title chore/unsingletonize more things chore: remove Singleton & replace getIApp with getApp Jul 21, 2024
@pajlada
Copy link
Member Author

pajlada commented Jul 21, 2024

image

@pajlada pajlada enabled auto-merge (squash) July 21, 2024 12:43
@pajlada pajlada merged commit 5deec1f into master Jul 21, 2024
16 of 17 checks passed
@pajlada pajlada deleted the chore/unsingletonize-more-things branch July 21, 2024 13:10
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.

None yet

1 participant