views:

113

answers:

14

I'm building a PHP framework and my english is not the best. There are several classes (database abstraction, module, router,...) in my framework and there is a place where they all have to be initialized and executed together.

  • What is a good name for a "master" class that initializes and runs all other classes?
+1  A: 

root?

adding random text since it won't let me submit otherwise

Lo'oris
A: 

core

adding random text since it won't let me submit otherwise

dusoft
All the classes together are already the core of my framework - the class that initializes and manages all of them isn't the core.
opue
A: 

bootstrapper

adding random text since it won't let me submit otherwise

qntmfred
A: 

Driver?

adding random text since it won't let me submit otherwise

SP
+4  A: 

bootstrap

adding random text since it won't let me submit otherwise

ryeguy
That would have been my name of choice but the bad thing about is that I already have a bootstrapper.php. It loads all class files and initializes the class I'm searching the name for here! :D
opue
A: 

Gennerally that would be the name of your framework.

$Opue

would work nicely. Or you could add a prefix. fwOupe.

Lloyd
+1  A: 

Whatever you want to call the framework?

Josh
A: 

You can name it Delegator.

jwhat
A: 

I use an Application singleton:

class Foo 
{
  public function bar()
  {
    $app = Application::getInstance();
    $app->db->query( ... );
  }
}
konforce
+3  A: 

BuckarooBonzaiAndTheBootstrapInitiatorRoutine

David Souther
A: 

I will call it main. The C++ main function does the same things in some projects - just create instances of some important classes.

opue
A: 

What is a good name for a "master" class that initializes and runs all other classes?

ClassFactory

Don
A: 

Why not TypeYourAppNameHere?

lemon
A: 

GlobalFactory ?

Savageman