Skip to content

Commit

Permalink
Update MatisseSettings.php
Browse files Browse the repository at this point in the history
The search for macros should recurse directories
  • Loading branch information
goncalomartins authored Nov 18, 2022
1 parent fd77d7b commit f563e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config/MatisseSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function registerMacros (ModuleInfo $moduleInfo)
$path =
"{$this->kernelSettings->baseDirectory}/$moduleInfo->path/{$this->viewEngineSettings->moduleViewsPath()}/$this->moduleMacrosPath";
if (fileExists ($path)) {
$all = FilesystemFlow::from ($path)
$all = FilesystemFlow::recursiveFrom ($path)
->onlyDirectories ()
->map (function (\SplFileInfo $info, &$k) {
$k = $info->getPathname ();
Expand Down

0 comments on commit f563e44

Please sign in to comment.