diff --git a/src/Config.php b/src/Config.php index 708e341..db5dd2b 100644 --- a/src/Config.php +++ b/src/Config.php @@ -22,6 +22,9 @@ use Aura\Di\Container; use Aura\Di\ContainerConfig; +use Aura\Auth\AuthFactory as Factory; +use Aura\Auth\Adapter\NullAdapter; + /** * Config * @@ -73,17 +76,17 @@ public function define(Container $di) $di->values['cookie'] = $this->cookie; } - $di->params['Aura\Auth\AuthFactory']['cookie'] = $di->lazyValue('cookie'); + $di->params[Factory::class]['cookie'] = $di->lazyValue('cookie'); $di->set( 'aura/auth:factory', - $di->lazyNew('Aura\Auth\AuthFactory') + $di->lazyNew(Factory::class) ); if (! $di->has('aura/auth:adapter')) { $di->set( 'aura/auth:adapter', - $di->lazyNew('Aura\Auth\Adapter\NullAdapter') + $di->lazyNew(NullAdapter::class) ); }