From 3ada2cbd3e9a3c16863f4a1e7b1bedf8e6cf1051 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 11 Sep 2011 23:14:00 -0500 Subject: [PATCH] renamed authenticator to auth and adjusted container. --- laravel/config/container.php | 2 +- .../security/{authenticator.php => auth.php} | 22 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) rename laravel/security/{authenticator.php => auth.php} (92%) diff --git a/laravel/config/container.php b/laravel/config/container.php index 6fe96050..27f3e6c5 100644 --- a/laravel/config/container.php +++ b/laravel/config/container.php @@ -16,7 +16,7 @@ 'laravel.auth' => array('singleton' => true, 'resolver' => function($container) { - return new Security\Authenticator($container->resolve('laravel.config'), $container->resolve('laravel.session')); + return new Security\Auth($container->resolve('laravel.config'), $container->resolve('laravel.session')); }), diff --git a/laravel/security/authenticator.php b/laravel/security/auth.php similarity index 92% rename from laravel/security/authenticator.php rename to laravel/security/auth.php index e0ea9107..9db736df 100644 --- a/laravel/security/authenticator.php +++ b/laravel/security/auth.php @@ -2,7 +2,7 @@ use Laravel\Session\Driver; -class Authenticator { +class Auth { /** * The current user of the application. @@ -11,19 +11,19 @@ class Authenticator { */ protected $user; - /** - * The session driver being used by the Auth instance. - * - * @var Session\Driver - */ - protected $session; - /** * The configuration manager instance. * * @var Config */ - protected $engine; + protected $config; + + /** + * The session driver instance. + * + * @var Session\Driver + */ + protected $session; /** * Create a new authenticator instance. @@ -68,8 +68,8 @@ public function user() * If the given credentials are valid, the user will be considered logged into the * application and their user ID will be stored in the session data. * - * @param string $username - * @param string $password + * @param string $username + * @param string $password * @return bool */ public function attempt($username, $password = null)