added more facades.
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
<?php namespace Laravel\Security;
|
||||
|
||||
use Laravel\IoC;
|
||||
use Laravel\Facade;
|
||||
use Laravel\Session\Driver;
|
||||
|
||||
class Authenticator_Facade extends Facade { public static $resolve = 'auth'; }
|
||||
|
||||
class Authenticator {
|
||||
|
||||
/**
|
||||
@@ -51,16 +54,6 @@ class Authenticator {
|
||||
$this->session = $driver;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an authenticator instance from the IoC container.
|
||||
*
|
||||
* @return Authenticator
|
||||
*/
|
||||
public static function make()
|
||||
{
|
||||
return IoC::container()->resolve('laravel.auth');
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the current user of the application is authenticated.
|
||||
*
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<?php namespace Laravel\Security;
|
||||
|
||||
use Laravel\IoC;
|
||||
use Laravel\Facade;
|
||||
|
||||
class Crypter_Facade extends Facade { public static $resolve = 'crypter'; }
|
||||
|
||||
class Crypter {
|
||||
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<?php namespace Laravel\Security\Hashing;
|
||||
|
||||
use Laravel\Facade;
|
||||
|
||||
class Hasher_Facade extends Facade { public static $resolve = 'hasher'; }
|
||||
|
||||
class Hasher {
|
||||
|
||||
/**
|
||||
@@ -22,19 +26,6 @@ class Hasher {
|
||||
$this->engine = (is_null($engine)) ? new BCrypt(10, false) : $engine;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new Hasher instance.
|
||||
*
|
||||
* If no hashing engine is provided, the BCrypt engine will be used.
|
||||
*
|
||||
* @param Engine $engine
|
||||
* @return Hasher
|
||||
*/
|
||||
public static function make(Engine $engine = null)
|
||||
{
|
||||
return new static($engine);
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic Method for delegating method calls to the hashing engine.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user