mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 06:14:04 +00:00
Use better class for the macro
This commit is contained in:
parent
bc70a2fab8
commit
5c6226befc
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ declare(strict_types=1);
|
||||||
namespace Stancl\Tenancy;
|
namespace Stancl\Tenancy;
|
||||||
|
|
||||||
use Illuminate\Cache\CacheManager as BaseCacheManager;
|
use Illuminate\Cache\CacheManager as BaseCacheManager;
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Cache\Repository;
|
||||||
|
|
||||||
// todo move to Cache namespace?
|
// todo move to Cache namespace?
|
||||||
|
|
||||||
|
|
@ -44,7 +44,7 @@ class CacheManager extends BaseCacheManager
|
||||||
|
|
||||||
public function refreshStore(string|null $repository = null): void
|
public function refreshStore(string|null $repository = null): void
|
||||||
{
|
{
|
||||||
Cache::macro('setStore', function ($store) {
|
Repository::macro('setStore', function ($store) {
|
||||||
$this->store = $store;
|
$this->store = $store;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue