Skip to content

Commit

Permalink
Merge pull request #679 from okaufmann/bugfix/loader-type
Browse files Browse the repository at this point in the history
Refactor CustomTranslationsLoader for Compatibility with Statamic
  • Loading branch information
shalvah authored Jun 5, 2023
2 parents 86a9e24 + 5e23e90 commit 4f9fa4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Writing/CustomTranslationsLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@

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');
Expand Down

0 comments on commit 4f9fa4b

Please sign in to comment.