Use `dirname` instead of `realpath`, and added `resourcesPath()`

master
Gertjan Krol 2023-09-01 20:04:05 +02:00
parent c6e7696c4b
commit 160185fdd7
1 changed files with 6 additions and 1 deletions

View File

@ -65,6 +65,11 @@ final class SkeletonServiceProvider extends ServiceProvider
private function packageRoot(): string 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;
} }
} }