Skip to content

Commit

Permalink
Use stache variables repository when importing global variables (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken-vdE authored Sep 6, 2023
1 parent a1bf88e commit ef1fd2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Commands/ImportGlobals.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
use Statamic\Console\RunsInPlease;
use Statamic\Contracts\Globals\GlobalRepository as GlobalRepositoryContract;
use Statamic\Contracts\Globals\GlobalSet as GlobalSetContract;
use Statamic\Contracts\Globals\GlobalVariablesRepository as GlobalVariablesRepositoryContract;
use Statamic\Eloquent\Globals\GlobalSet;
use Statamic\Eloquent\Globals\Variables;
use Statamic\Facades\GlobalSet as GlobalSetFacade;
use Statamic\Stache\Repositories\GlobalRepository;
use Statamic\Stache\Repositories\GlobalVariablesRepository;
use Statamic\Statamic;

class ImportGlobals extends Command
Expand Down Expand Up @@ -50,6 +52,7 @@ private function useDefaultRepositories()
Facade::clearResolvedInstance(GlobalRepositoryContract::class);

Statamic::repository(GlobalRepositoryContract::class, GlobalRepository::class);
Statamic::repository(GlobalVariablesRepositoryContract::class, GlobalVariablesRepository::class);

app()->bind(GlobalSetContract::class, GlobalSet::class);
}
Expand Down

0 comments on commit ef1fd2b

Please sign in to comment.