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