Merge pull request #679 from okaufmann/bugfix/loader-type

Refactor CustomTranslationsLoader for Compatibility with Statamic
This commit is contained in:
Shalvah
2023-06-05 19:10:04 +02:00
committed by GitHub

View File

@@ -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');