From 160185fdd7d4ed8442c8f541992f3571a847f463 Mon Sep 17 00:00:00 2001 From: Gertjan Krol Date: Fri, 1 Sep 2023 20:04:05 +0200 Subject: [PATCH] Use `dirname` instead of `realpath`, and added `resourcesPath()` --- src/SkeletonServiceProvider.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SkeletonServiceProvider.php b/src/SkeletonServiceProvider.php index 6dcb0a4..4124c73 100644 --- a/src/SkeletonServiceProvider.php +++ b/src/SkeletonServiceProvider.php @@ -65,6 +65,11 @@ final class SkeletonServiceProvider extends ServiceProvider private function packageRoot(): string { - return realpath(__DIR__ . '/..'); + return dirname(__DIR__ . DIRECTORY_SEPARATOR . '..') . DIRECTORY_SEPARATOR; + } + + private function resourcesPath(): string + { + return $this->packageRoot() . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR; } }