开发者

In a (PHP) framework, what would be a good name for a "manager" class?

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 开发者_如何学Goall have to be initialized and executed together.

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


BuckarooBonzaiAndTheBootstrapInitiatorRoutine


bootstrap

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


Whatever you want to call the framework?


root?

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


You can name it Delegator.


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

ClassFactory


Why not TypeYourAppNameHere?


ActiveBase

this will be a nice name for the master class i guess


core

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


bootstrapper

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


Driver?

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


Gennerally that would be the name of your framework.

$Opue

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


I use an Application singleton:

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


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


GlobalFactory ?


It's an initialisation or bootup routine right? So why not Boot or GlobalInitialiser or similar?

(adjust to crazy American spelling as needed ;))

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜