Browse Source

Load bootstrap after adding plugin to autoloader

Walther Lalk 11 years ago
parent
commit
e93158b141
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/Core/Plugin.php

+ 4 - 4
src/Core/Plugin.php

@@ -156,10 +156,6 @@ class Plugin
 
         static::$_plugins[$plugin] = $config;
 
-        if ($config['bootstrap'] === true) {
-            static::bootstrap($plugin);
-        }
-
         if ($config['autoload'] === true) {
             if (empty(static::$_loader)) {
                 static::$_loader = new ClassLoader;
@@ -174,6 +170,10 @@ class Plugin
                 $config['path'] . 'tests' . DS
             );
         }
+
+        if ($config['bootstrap'] === true) {
+            static::bootstrap($plugin);
+        }
     }
 
     /**