Pārlūkot izejas kodu

use Loader contact to prevent conflict with other loaders

Oliver Kaufmann 1 gadu atpakaļ
vecāks
revīzija
5e23e90d86
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      src/Writing/CustomTranslationsLoader.php

+ 3 - 2
src/Writing/CustomTranslationsLoader.php

@@ -4,16 +4,17 @@ namespace Knuckles\Scribe\Writing;
 
 use Illuminate\Translation\FileLoader;
 use Knuckles\Scribe\Tools\Globals;
+use Illuminate\Contracts\Translation\Loader as LoaderContract;
 
 class CustomTranslationsLoader extends FileLoader
 {
-    protected FileLoader $defaultLoader;
+    protected LoaderContract $defaultLoader;
     protected mixed $langPath;
 
     protected ?array $scribeTranslationsCache = null;
     protected ?array $userTranslationsCache = null;
 
-    public function __construct(FileLoader $loader)
+    public function __construct(LoaderContract $loader)
     {
         $this->defaultLoader = $loader;
         $this->files = app('files');