remove before

This commit is contained in:
philipp lang 2021-06-18 23:36:22 +02:00
parent 4a89f167f8
commit df10368f24
3 changed files with 6 additions and 3 deletions

View File

@ -20,8 +20,7 @@ class NamiGuard {
protected $user; protected $user;
protected $session; protected $session;
public function __construct($config, $session, $cache) { public function __construct($session, $cache) {
$this->config = $config;
$this->session = $session; $this->session = $session;
$this->cache = $cache; $this->cache = $cache;
} }

View File

@ -14,7 +14,7 @@ class NamiServiceProvider extends ServiceProvider
public function boot() public function boot()
{ {
Auth::extend('nami', function ($app, $name, array $config) { 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']);
}); });
} }

View File

@ -22,6 +22,10 @@ class TestCase extends \Orchestra\Testbench\TestCase
return [ NamiServiceProvider::class ]; return [ NamiServiceProvider::class ];
} }
public function getAnnotations(): array {
return [];
}
protected function setCredentials() { protected function setCredentials() {
Config::set('nami.auth.mglnr', '11223'); Config::set('nami.auth.mglnr', '11223');
Config::set('nami.auth.password', 'secret'); Config::set('nami.auth.password', 'secret');