/** * Scans all files in folders * * @param array|string $uFolders folders * * @return void */ public function processFolder(...$uFolders) { foreach ($uFolders as $tFolder) { FileSystem::getFilesWalk($tFolder, "*.php", true, [$this, "processFile"]); } }
/** * Scans all files to find annotations * * @return void */ public function scan() { // initialize annotation scanner $this->annotationScanner = new AnnotationScanner(); // -- scan composer maps $tFolders = Core::$instance->loader->getComposerFolders(); foreach ($tFolders as $tPath) { if (file_exists($tPath[1])) { FileSystem::getFilesWalk($tPath[1], "*.php", true, [$this, "scanFile"], $tPath[0]); } } $this->annotationMap = $this->annotationScanner->result; unset($this->annotationScanner); }