Process/Php7.php
[Pman.Core] / Process / Php7.php
index 80ed60b..ce892b2 100644 (file)
@@ -36,6 +36,8 @@ class Pman_Core_Process_Php7 extends Pman
         });
         
         $this->scan();
+        
+        exit;
     }
     
     function scan($route = array()) 
@@ -59,10 +61,14 @@ class Pman_Core_Process_Php7 extends Pman
                 continue;
             }
             
-//            require_once implode('/', $route) . "/" . $d;
+            if(empty($route)){
+                continue;
+            }
             
             try {
+                
                 require_once implode('/', $route) . "/" . $d;
+                
             } catch (ErrorException $ex) {
                 echo $ex->getMessage() . "\n";
             }