From 8e9b4379efc2d19a383affa356991955b647bc45 Mon Sep 17 00:00:00 2001 From: jake johns Date: Tue, 29 Mar 2016 00:35:20 -0400 Subject: [PATCH] Use ::class resolution --- src/Config.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) ); }