Scan all `.php` files under the workspace root using the PSR-4 scanner (`find_classes`), excluding hidden directories, gitignored directories, and vendor directories. This is a classes-only fallback used when `composer.json` cannot be parsed. Prefer [`scan_workspace_fallback_full`] for the no-Composer scenario so that functions and constants are also discovered. `vendor_dir_paths` contains abso
(
workspace_root: &Path,
vendor_dir_paths: &[PathBuf],
)
| 424 | /// directories. Pass a single-element slice with the vendor directory |
| 425 | /// for single-project workspaces. |
| 426 | pub fn scan_workspace_fallback( |
| 427 | workspace_root: &Path, |
| 428 | vendor_dir_paths: &[PathBuf], |
| 429 | ) -> HashMap<String, PathBuf> { |
| 430 | scan_directories(&[workspace_root.to_path_buf()], vendor_dir_paths) |
| 431 | } |
| 432 | |
| 433 | /// Scan a batch of files for class names in parallel and return a classmap. |
| 434 | /// |