Commit 3ada2cbd authored by Taylor Otwell's avatar Taylor Otwell

renamed authenticator to auth and adjusted container.

parent 9db8e1bb
...@@ -16,7 +16,7 @@ return array( ...@@ -16,7 +16,7 @@ return array(
'laravel.auth' => array('singleton' => true, 'resolver' => function($container) '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'));
}), }),
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
use Laravel\Session\Driver; use Laravel\Session\Driver;
class Authenticator { class Auth {
/** /**
* The current user of the application. * The current user of the application.
...@@ -12,18 +12,18 @@ class Authenticator { ...@@ -12,18 +12,18 @@ class Authenticator {
protected $user; protected $user;
/** /**
* The session driver being used by the Auth instance. * The configuration manager instance.
* *
* @var Session\Driver * @var Config
*/ */
protected $session; protected $config;
/** /**
* The configuration manager instance. * The session driver instance.
* *
* @var Config * @var Session\Driver
*/ */
protected $engine; protected $session;
/** /**
* Create a new authenticator instance. * Create a new authenticator instance.
...@@ -68,8 +68,8 @@ class Authenticator { ...@@ -68,8 +68,8 @@ class Authenticator {
* If the given credentials are valid, the user will be considered logged into the * 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. * application and their user ID will be stored in the session data.
* *
* @param string $username * @param string $username
* @param string $password * @param string $password
* @return bool * @return bool
*/ */
public function attempt($username, $password = null) public function attempt($username, $password = null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment