Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
rename trait
Browse files Browse the repository at this point in the history
  • Loading branch information
marcorieser committed Mar 8, 2024
1 parent f8b2f23 commit e085097
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RestoreSite.php → src/RestoreCurrentSite.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
use Statamic\Facades\Site;
use Statamic\Statamic;

trait RestoreSite
trait RestoreCurrentSite
{
#[Locked]
public string $siteHandle = "";

public function mountRestoreSite(): void
public function mountRestoreCurrentSite(): void
{
$this->siteHandle = Site::current()->handle();
}

public function hydrateRestoreSite(): void
public function hydrateRestoreCurrentSite(): void
{
Site::setCurrent($this->siteHandle);

Expand Down

0 comments on commit e085097

Please sign in to comment.