Environment bootstrapping

A module needs to initialize its own environment. The folder structure of a module is essentially free-form, so dmBridge itself isn't going to know all of the different bits and pieces that the module is going to need to include(). The bootstrap.php file needs to contain at least enough code to enable dmBridge to instantiate the module's main class. That means it needs to either include the main class directly, or via its own custom autoloader.

The bootstrap.php file need not include all of the module's files at once. In fact, this would be a bad idea for performance reasons. It is perfectly acceptable to use an autoloader, or to have individual class files include only their own collaborators via include_once() or require_once().