diff --git a/src/Authentication/NamiGuard.php b/src/Authentication/NamiGuard.php index 65051f2..6d7f28f 100644 --- a/src/Authentication/NamiGuard.php +++ b/src/Authentication/NamiGuard.php @@ -20,8 +20,7 @@ class NamiGuard { protected $user; protected $session; - public function __construct($config, $session, $cache) { - $this->config = $config; + public function __construct($session, $cache) { $this->session = $session; $this->cache = $cache; } diff --git a/src/Providers/NamiServiceProvider.php b/src/Providers/NamiServiceProvider.php index bbcfe9b..622e56b 100644 --- a/src/Providers/NamiServiceProvider.php +++ b/src/Providers/NamiServiceProvider.php @@ -14,7 +14,7 @@ class NamiServiceProvider extends ServiceProvider public function boot() { Auth::extend('nami', function ($app, $name, array $config) { - return new NamiGuard($config['beforeDriver'], $this->app['session.store'], $this->app['cache.store']); + return new NamiGuard($this->app['session.store'], $this->app['cache.store']); }); } diff --git a/tests/TestCase.php b/tests/TestCase.php index a1f07a1..67284b3 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -22,6 +22,10 @@ class TestCase extends \Orchestra\Testbench\TestCase return [ NamiServiceProvider::class ]; } + public function getAnnotations(): array { + return []; + } + protected function setCredentials() { Config::set('nami.auth.mglnr', '11223'); Config::set('nami.auth.password', 'secret');