Skip to content

Commit f563e44

Browse files
Update MatisseSettings.php
The search for macros should recurse directories
1 parent fd77d7b commit f563e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Config/MatisseSettings.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function registerMacros (ModuleInfo $moduleInfo)
217217
$path =
218218
"{$this->kernelSettings->baseDirectory}/$moduleInfo->path/{$this->viewEngineSettings->moduleViewsPath()}/$this->moduleMacrosPath";
219219
if (fileExists ($path)) {
220-
$all = FilesystemFlow::from ($path)
220+
$all = FilesystemFlow::recursiveFrom ($path)
221221
->onlyDirectories ()
222222
->map (function (\SplFileInfo $info, &$k) {
223223
$k = $info->getPathname ();

0 commit comments

Comments
 (0)