From 08b24e8b823d1344b00f48287ef82d66a18fb476 Mon Sep 17 00:00:00 2001 From: QWp6t Date: Sun, 9 Mar 2025 23:50:02 -0700 Subject: [PATCH 1/2] =?UTF-8?q?=E2=8F=AA=20use=20absolute=20paths=20in=20`?= =?UTF-8?q?Application::usePaths()`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Roots/Acorn/Application.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Roots/Acorn/Application.php b/src/Roots/Acorn/Application.php index 37cabab7..4850138d 100644 --- a/src/Roots/Acorn/Application.php +++ b/src/Roots/Acorn/Application.php @@ -173,9 +173,7 @@ public function usePaths(array $paths) throw new Exception("The {$pathType} path type is not supported."); } - $this->{$supportedPaths[$pathType]} = Str::startsWith($path, $this->absoluteCachePathPrefixes) - ? $path - : $this->basePath($path); + $this->{$supportedPaths[$pathType]} = $path; } $this->bindPathsInContainer(); From 3914c2eafd64c48a68db0c68fa9a094b115cca99 Mon Sep 17 00:00:00 2001 From: QWp6t Date: Sun, 9 Mar 2025 23:57:01 -0700 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=9A=A8=20code=20styles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Roots/Acorn/Application.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Roots/Acorn/Application.php b/src/Roots/Acorn/Application.php index 4850138d..227bed87 100644 --- a/src/Roots/Acorn/Application.php +++ b/src/Roots/Acorn/Application.php @@ -10,7 +10,6 @@ use Illuminate\Foundation\ProviderRepository; use Illuminate\Support\Collection; use Illuminate\Support\ServiceProvider; -use Illuminate\Support\Str; use Roots\Acorn\Application\Concerns\Bootable; use Roots\Acorn\Configuration\ApplicationBuilder; use Roots\Acorn\Exceptions\SkipProviderException;