refactor(componentrenderer): update locateView using a lookupModules property in config

This commit is contained in:
Yassine Doghri 2021-09-02 10:01:20 +00:00
commit 58c8839902
3 changed files with 39 additions and 6 deletions

View file

@ -11,4 +11,14 @@ class ViewComponents extends BaseConfig
public string $classComponentsPath = 'View/Components';
public string $viewFileComponentsPath = 'Views/components';
/**
* Modules to look into for local components. Associative array with the module namespace as key and the module path
* as value.
*
* @var array<string, string>
*/
public array $lookupModules = [];
public string $defaultLookupPath = APPPATH;
}