Skip to content

Commit

Permalink
fix: fix redis instantiation part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
azuradara committed Dec 16, 2024
1 parent 2f1455d commit 1928521
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Foggle.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

namespace YouCanShop\Foggle;

use Illuminate\Contracts\Config\Repository as ConfigRepository;
use Illuminate\Contracts\Container\BindingResolutionException;
use Illuminate\Contracts\Container\Container;
use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
use Illuminate\Redis\RedisManager;
use InvalidArgumentException;
use RuntimeException;
use YouCanShop\Foggle\Contracts\ContextResolver;
Expand Down Expand Up @@ -63,9 +66,9 @@ protected function resolve(string $name): Decorator
$driver = new RedisDriver(
$name,
[],
$this->container['redis'],
$this->container['config'],
$this->container['events']
$this->container->make(RedisManager::class),
$this->container->make(ConfigRepository::class),
$this->container->make(EventDispatcher::class),
);
}

Expand Down

0 comments on commit 1928521

Please sign in to comment.