Skip to content

add processor dir as a config

Choose a tag to compare

@ChristopheFerreboeuf ChristopheFerreboeuf released this 14 May 09:21
· 1 commit to main since this release
b580547

Added

  • Config-driven processor directories (processorDirs key in config/easyaudit.json): map of namespace → directory consumed by Scanner::getProcessors(). Lets sponsor overlays register additional processor namespaces — or replace the built-in set entirely — without subclassing Scanner. A present, non-empty map replaces the built-in default (EasyAudit\Core\Scan\Processorsrc/Core/Scan/Processor); an empty map ({}, shipped as a placeholder in the default config) or an absent key falls back to it. Relative paths resolve against the directory of the config file; missing directories are skipped silently at scan time. getProcessors() is also promoted from private to protected so subclassing remains a fallback extension path.

Full Changelog: v1.3.0...v1.3.1