<?php
+// Own namespace
+namespace CoreFramework\Bootstrap;
+
+// Import framework stuff
+use CoreFramework\EntryPoint\ApplicationEntryPoint;
+
/**
* A framework-bootstrap class which helps the frameworks to bootstrap ... ;-)
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class BootstrapFramework {
+final class BootstrapFramework {
/**
* Private constructor, no instance is needed from this class as only
* static methods exist.
private function __construct () {
// Prevent making instances from this "utilities" class
}
-}
-// [EOF]
-?>
+ /**
+ * Does the actual bootstrap
+ *
+ * @return void
+ */
+ public static function doBootstrap () {
+ // Load basic include files to continue bootstrapping
+ require(ApplicationEntryPoint::detectFrameworkPath() . 'main/interfaces/class_FrameworkInterface.php');
+ require(ApplicationEntryPoint::detectFrameworkPath() . 'main/interfaces/registry/class_Registerable.php');
+ require(ApplicationEntryPoint::detectFrameworkPath() . 'config/class_FrameworkConfiguration.php');
+
+ // Load main configuration
+ require(ApplicationEntryPoint::detectFrameworkPath() . 'config.inc.php');
+ }
+
+}