ManifestFileFinder
class ManifestFileFinder extends FileFinder
An extension to the default file finder with some extra filters to faciliate autoload and template manifest generation: - Only modules with _config.php files are scanned.
- If a _manifest_exclude file is present inside a directory it is ignored.
- Assets and module language directories are ignored.
- Module tests directories are skipped if the ignore_tests option is not set to false.
Constants
CONFIG_FILE |
|
CONFIG_DIR |
|
EXCLUDE_FILE |
|
LANG_DIR |
|
TESTS_DIR |
|
VENDOR_DIR |
|
RESOURCES_DIR |
|
Methods
Set an option on this finder instance. See {@link SS_FileFinder} for the list of options available.
Finds all files matching the options within a directory. The search is performed depth first.
No description
Check if the given dir is, or is inside the vendor folder
Check if the given dir is, or is inside the themes folder
Check if this folder or any parent is ignored
Check if this folder is inside any module
Check if the given dir is a module root (not a subdir)
Check if the given directory is ignored
Details
in FileFinder at line 72
__construct()
in FileFinder at line 91
mixed
getOption(string $name)
Returns an option value set on this instance.
in FileFinder at line 107
setOption(string $name, mixed $value)
Set an option on this finder instance. See {@link SS_FileFinder} for the list of options available.
in FileFinder at line 121
setOptions(array $options)
Sets several options at once.
in FileFinder at line 135
array
find(string $base)
Finds all files matching the options within a directory. The search is performed depth first.
at line 38
acceptDir($basename, $pathname, $depth)
at line 87
bool
isInsideVendor(string $basename, string $pathname, int $depth)
Check if the given dir is, or is inside the vendor folder
at line 101
bool
isInsideThemes(string $basename, string $pathname, int $depth)
Check if the given dir is, or is inside the themes folder
at line 115
bool
isInsideIgnored(string $basename, string $pathname, int $depth)
Check if this folder or any parent is ignored
at line 130
bool
isInsideModule(string $basename, string $pathname, int $depth)
Check if this folder is inside any module
at line 169
bool
isDirectoryModule(string $basename, string $pathname, string $depth)
Check if the given dir is a module root (not a subdir)
at line 229
bool
isDirectoryIgnored(string $basename, string $pathname, string $depth)
Check if the given directory is ignored