Use `dirname` instead of `realpath`, and added `resourcesPath()`
parent
c6e7696c4b
commit
160185fdd7
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue