Process/Php7.php
[Pman.Core] / Process / Php7.php
index a8b224b..45f225d 100644 (file)
@@ -22,13 +22,9 @@ class Pman_Core_Process_Php7 extends Pman
             die("CLI only");
         }
     }
-
+    
     function get($base, $opts = array()) 
     {
-        $dir = array($this->rootDir);
-        $cls = array();
-        
-//        $this->scan($this->rootDir, 'Pman');
         $this->scan();
     }
     
@@ -53,7 +49,13 @@ class Pman_Core_Process_Php7 extends Pman
                 continue;
             }
             
-            require_once implode('/', $route) . "/" . $d;
+//            require_once implode('/', $route) . "/" . $d;
+            
+            try {
+                require_once implode('/', $route) . "/" . $d;
+            } catch (ErrorException $ex) {
+                echo "Unable to load configuration file.";
+            }
             
         }