RyanBayne / TwitchPress

TwitchPress is a system of plugins that combines the power of Twitch.tv with WordPress
http://twitchpress.wordpress.com
GNU General Public License v3.0
12 stars 6 forks source link

Stop init classes within loader and not class files #321

Closed RyanBayne closed 5 years ago

RyanBayne commented 5 years ago

I'm starting to get a little concerned about the mix of approaches to initiation classes and what the initiation actually involves.

As the plugin grows I feel the need for a better snapshot of what classes are being initiated, what objects are being created and what each initiation actually looks like.

I want to update load_core_objects() with as many classes as possible. That will involved a clearer approach to initiating each construct or init() method. Probably resulting in a list which can be easily managed to prevent initiating classes in certain circumstances - in a way that is easier than doing so within each class file.

image.png