Process/Php7.php
authorEdward <edward@roojs.com>
Wed, 21 Nov 2018 08:53:11 +0000 (16:53 +0800)
committerEdward <edward@roojs.com>
Wed, 21 Nov 2018 08:53:11 +0000 (16:53 +0800)
Process/Php7.php

index 44e7a16..dff9646 100644 (file)
@@ -29,12 +29,14 @@ class Pman_Core_Process_Php7 extends Pman
         $cls = array();
         
 //        $this->scan($this->rootDir, 'Pman');
-        $this->scan($dir, $cls);
+        $this->scan();
     }
     
-    function scan($dir, $cls
+    function scan($route = array()
     {
-        echo "Looking for " . implode('/', $dir) . "\n";
+        $dir = $this->rootDir . "/" . implode("/", $route);
+        
+        echo "Looking for {$dir}\n";
         
         foreach (scandir(implode('/', $dir)) as $d) {