Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
warrickbayman committed Jan 6, 2024
1 parent f75308c commit 5e8b829
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/deadbolt.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
|
*/

'driver' => TPG\Deadbolt\Drivers\ArrayDriver::class,
'driver' => TPG\Deadbolt\Drivers\ConfigDriver::class,
];
4 changes: 2 additions & 2 deletions src/DeadboltService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +24,7 @@ public function __construct(array $config)

$this->driver($configuredDriver
? new $configuredDriver($config)
: new ArrayDriver($config)
: new ConfigDriver($config)
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 5e8b829

Please sign in to comment.