From df10368f2434b46a6d4a8cb4ad37fca97d9d80e3 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 18 Jun 2021 23:36:22 +0200 Subject: [PATCH] remove before --- src/Authentication/NamiGuard.php | 3 +-- src/Providers/NamiServiceProvider.php | 2 +- tests/TestCase.php | 4 ++++ 3 files changed, 6 insertions(+), 3 deletions(-) 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');