Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
yaza-putu committed Sep 5, 2022
2 parents 0081191 + adbf3d8 commit adb16e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/RepositoryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ private function getRepositoryPath()
$dirs = File::directories($this->app->basePath() .
"/" . config("easy-repository.repository_directory"));
foreach ($dirs as $dir) {
$dir = str_replace('\\', '/', $dir);
$arr = explode("/", $dir);

$folders[] = end($arr);
Expand Down Expand Up @@ -201,7 +202,9 @@ private function getServicePath() {


foreach ($path as $file) {
$servicePath[] = str_replace("Services/","",strstr($file->getPath(), "Services"));
$file_path = strstr($file->getPath(), "Services");
$file_path = str_replace('\\', '/', $file_path);
$servicePath[] = str_replace("Services/","",$file_path);
}
}

Expand Down

0 comments on commit adb16e8

Please sign in to comment.