mirror of
https://github.com/ambieco/scribe.git
synced 2026-01-12 22:43:50 +08:00
Merge pull request #679 from okaufmann/bugfix/loader-type
Refactor CustomTranslationsLoader for Compatibility with Statamic
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user