X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Floader%2Fclass_ClassLoader.php;h=eef05549a88553580a4d92e163603a58e7bba084;hb=784b3b501f860f00a15cdd50a6d5d201ddedcf34;hp=601b06d95d539b8bb650f917d318657dc593ff05;hpb=e51607c0f33062258ba0a07b79b8e1f34fd6b832;p=core.git diff --git a/inc/loader/class_ClassLoader.php b/inc/loader/class_ClassLoader.php index 601b06d9..eef05549 100644 --- a/inc/loader/class_ClassLoader.php +++ b/inc/loader/class_ClassLoader.php @@ -276,12 +276,14 @@ class ClassLoader { // Get filename from iterator $fileName = $entry->getFileName(); + // Get the FQFN and add it to our class list + $fqfn = $entry->getRealPath(); + // Is this file wanted? //* DEBUG: */ echo "FOUND:{$fileName}
\n"; - if ((!in_array($fileName, $this->ignoreList)) && (substr($fileName, 0, strlen($this->prefix)) == $this->prefix) && (substr($fileName, -strlen($this->suffix), strlen($this->suffix)) == $this->suffix)) { - // Get the FQFN and add it to our class list - $fqfn = $entry->getRealPath(); + if ((!in_array($fileName, $this->ignoreList)) && (filesize($fqfn) > 100) && (substr($fileName, 0, strlen($this->prefix)) == $this->prefix) && (substr($fileName, -strlen($this->suffix), strlen($this->suffix)) == $this->suffix)) { //* DEBUG: */ echo "ADD: {$fileName}
\n"; + // Add it to the list $this->classes[$fileName] = $fqfn; } // END - if } // END - foreach