diff --git a/src/Service/Partials.php b/src/Service/Partials.php index 7b7d857..d24cdea 100644 --- a/src/Service/Partials.php +++ b/src/Service/Partials.php @@ -38,6 +38,6 @@ class Partials */ protected function getFilePattern(string $directoryName) { - return __DIR__ . DIRECTORY_SEPARATOR . $directoryName . DIRECTORY_SEPARATOR . '/*.php'; + return getcwd() . DIRECTORY_SEPARATOR . $directoryName . DIRECTORY_SEPARATOR . '*.php'; } }