more refactoring for dependency injection.

This commit is contained in:
Taylor Otwell
2011-09-02 19:36:19 -05:00
parent 893bb83895
commit 6281c8c360
8 changed files with 122 additions and 76 deletions

View File

@@ -1,7 +1,6 @@
<?php namespace Laravel\Security;
use Laravel\IoC;
use Laravel\Config;
use Laravel\Session\Driver;
class Authenticator {
@@ -53,15 +52,13 @@ class Authenticator {
}
/**
* Create a new Auth class instance.
* Get an authenticator instance from the IoC container.
*
* If no session driver or hasher is provided, the default implementations will be used.
*
* @return Auth
* @return Authenticator
*/
public static function make()
{
return IoC::container()->resolve('laravel.security.auth');
return IoC::container()->resolve('laravel.auth');
}
/**