Skip to content

Commit 454fe43

Browse files
authored
⏪ use absolute paths in Application::usePaths() (#443)
1 parent 7f0b21d commit 454fe43

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Roots/Acorn/Application.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Illuminate\Foundation\ProviderRepository;
1111
use Illuminate\Support\Collection;
1212
use Illuminate\Support\ServiceProvider;
13-
use Illuminate\Support\Str;
1413
use Roots\Acorn\Application\Concerns\Bootable;
1514
use Roots\Acorn\Configuration\ApplicationBuilder;
1615
use Roots\Acorn\Exceptions\SkipProviderException;
@@ -173,9 +172,7 @@ public function usePaths(array $paths)
173172
throw new Exception("The {$pathType} path type is not supported.");
174173
}
175174

176-
$this->{$supportedPaths[$pathType]} = Str::startsWith($path, $this->absoluteCachePathPrefixes)
177-
? $path
178-
: $this->basePath($path);
175+
$this->{$supportedPaths[$pathType]} = $path;
179176
}
180177

181178
$this->bindPathsInContainer();

0 commit comments

Comments
 (0)