2014-03-14, 06:28:05
Yeah the classes will be available when they are included, problem would then be extending classes, which would have to be deferred.
The common hook is called after all plugins are loaded ( included ), which in turn include all their classes. So they should all be available at that point.
Now if you are talking about dynamically instantiating classes, then that will indeed be a problem, but php has actual autoloading built in to 5.3, so you can probably do something with that on your own. Not sure if it needs to be in core.
I mean can't plugins just add their classes to it themselves, even with a hook there is no way to make plugin use it.
It is possible I have no idea what i am talking about, or misunderstand what you are trying to suggest.
The common hook is called after all plugins are loaded ( included ), which in turn include all their classes. So they should all be available at that point.
Now if you are talking about dynamically instantiating classes, then that will indeed be a problem, but php has actual autoloading built in to 5.3, so you can probably do something with that on your own. Not sure if it needs to be in core.
I mean can't plugins just add their classes to it themselves, even with a hook there is no way to make plugin use it.
It is possible I have no idea what i am talking about, or misunderstand what you are trying to suggest.