remove before
This commit is contained in:
parent
4a89f167f8
commit
df10368f24
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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']);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue