]> git.mxchange.org Git - core.git/blobdiff - framework/bootstrap/class_BootstrapFramework.php
Continued with rewrites:
[core.git] / framework / bootstrap / class_BootstrapFramework.php
index ee8b6b95f389d0251e0a188bfd5ade2840030442..565f3c8b93fb222c20d766fdb48979d3bc3f1034 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace CoreFramework\Bootstrap;
+
+// Import framework stuff
+use CoreFramework\EntryPoint\ApplicationEntryPoint;
+
 /**
  * A framework-bootstrap class which helps the frameworks to bootstrap ... ;-)
  *
@@ -21,7 +27,7 @@
  * 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.
@@ -29,7 +35,20 @@ class BootstrapFramework {
        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');
+       }
+
+}