From 5e8b8298e41996a2f374054e3b317b186fcf17f5 Mon Sep 17 00:00:00 2001 From: Warrick Bayman Date: Sat, 6 Jan 2024 17:48:51 +0200 Subject: [PATCH] wip --- config/deadbolt.php | 2 +- src/DeadboltService.php | 4 ++-- src/Drivers/{ArrayDriver.php => ConfigDriver.php} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/Drivers/{ArrayDriver.php => ConfigDriver.php} (95%) diff --git a/config/deadbolt.php b/config/deadbolt.php index 7ce5ce6..8d132d8 100644 --- a/config/deadbolt.php +++ b/config/deadbolt.php @@ -42,5 +42,5 @@ | */ - 'driver' => TPG\Deadbolt\Drivers\ArrayDriver::class, + 'driver' => TPG\Deadbolt\Drivers\ConfigDriver::class, ]; diff --git a/src/DeadboltService.php b/src/DeadboltService.php index 7b58fbf..fc06331 100644 --- a/src/DeadboltService.php +++ b/src/DeadboltService.php @@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Arr; use TPG\Deadbolt\Contracts\DeadboltServiceInterface; -use TPG\Deadbolt\Drivers\ArrayDriver; +use TPG\Deadbolt\Drivers\ConfigDriver; use TPG\Deadbolt\Drivers\Contracts\DriverInterface; class DeadboltService implements DeadboltServiceInterface @@ -24,7 +24,7 @@ public function __construct(array $config) $this->driver($configuredDriver ? new $configuredDriver($config) - : new ArrayDriver($config) + : new ConfigDriver($config) ); } diff --git a/src/Drivers/ArrayDriver.php b/src/Drivers/ConfigDriver.php similarity index 95% rename from src/Drivers/ArrayDriver.php rename to src/Drivers/ConfigDriver.php index 1f172d5..985b14b 100644 --- a/src/Drivers/ArrayDriver.php +++ b/src/Drivers/ConfigDriver.php @@ -7,7 +7,7 @@ use Illuminate\Support\Arr; use TPG\Deadbolt\Drivers\Contracts\DriverInterface; -class ArrayDriver implements DriverInterface +class ConfigDriver implements DriverInterface { public function __construct(protected array $config) {