I am building a PHP framework and my English is not the best. There are several classes in my structure (database abstraction, module, router, ...), and there is a place where they should all be initialized and executed together.
BuckarooBonzaiAndTheBootstrapInitiatorRoutine
self-loading
adding random text as it will not allow me to present otherwise
Whatever you call a framework?
root
You can call him a delegate.
What is a good name for the "master" class, which initializes and runs all other classes?
ClassFactory
Why not TypeYourAppNameHere ?
TypeYourAppNameHere
ActiveBase
It will be a nice name for the master class, I think
core
Loader
driver?
In fact, it will be your framework.
$ Opue
will work well. Or you can add a prefix. fwOupe.
fwOupe.
I am using Application singleton:
Application
class Foo { public function bar() { $app = Application::getInstance(); $app->db->query( ... ); } }
I will name it main . The main C ++ function does the same in some projects - just instantiate some important classes.
main
Globalfactory?
Is this an initialization or loading procedure? So why not Boot or GlobalInitialiser or the like?
Boot
GlobalInitialiser
(adapt to crazy American spelling as needed;))