-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Next
Next commit
Update PHPDocs
corrected the namespaces.
- Loading branch information
commit 22f26ff5280dd40d8bb746e0b633c778d6c6a76f
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,90 @@ | ||
<?php namespace Illuminate\Auth; | ||
use Illuminate\Support\Manager; | ||
class AuthManager extends Manager { | ||
/** | ||
* Create a new driver instance. | ||
* | ||
* @param string $driver | ||
* @return mixed | ||
*/ | ||
protected function createDriver($driver) | ||
{ | ||
$guard = parent::createDriver($driver); | ||
// When using the remember me functionality of the authentication services we | ||
// will need to be set the encryption isntance of the guard, which allows | ||
// secure, encrypted cookie values to get generated for those cookies. | ||
$guard->setCookieJar($this->app['cookie']); | ||
$guard->setDispatcher($this->app['events']); | ||
return $guard; | ||
} | ||
/** | ||
* Create an instance of the database driver. | ||
* | ||
* @return Illuminate\Auth\Guard | ||
*/ | ||
protected function createDatabaseDriver() | ||
{ | ||
$provider = $this->createDatabaseProvider(); | ||
return new Guard($provider, $this->app['session']); | ||
} | ||
/** | ||
* Create an instance of the database user provider. | ||
* | ||
* @return Illuminate\Auth\DatabaseUserProvider | ||
*/ | ||
protected function createDatabaseProvider() | ||
{ | ||
$connection = $this->app['db']->connection(); | ||
// When using the basic database user provider, we need to inject the table we | ||
// want to use, since this is not an Eloquent model we will have no way to | ||
// know without telling the provider, so we'll inject the config value. | ||
$table = $this->app['config']['auth.table']; | ||
return new DatabaseUserProvider($connection, $this->app['hash'], $table); | ||
} | ||
/** | ||
* Create an instance of the Eloquent driver. | ||
* | ||
* @return Illuminate\Auth\Guard | ||
*/ | ||
public function createEloquentDriver() | ||
{ | ||
$provider = $this->createEloquentProvider(); | ||
return new Guard($provider, $this->app['session']); | ||
} | ||
/** | ||
* Create an instance of the Eloquent user provider. | ||
* | ||
* @return Illuminate\Auth\EloquentUserProvider | ||
*/ | ||
protected function createEloquentProvider() | ||
{ | ||
$model = $this->app['config']['auth.model']; | ||
return new EloquentUserProvider($this->app['hash'], $model); | ||
} | ||
/** | ||
* Get the default authentication driver name. | ||
* | ||
* @return string | ||
*/ | ||
protected function getDefaultDriver() | ||
{ | ||
return $this->app['config']['auth.driver']; | ||
} | ||
<?php namespace Illuminate\Auth; | ||
|
||
use Illuminate\Support\Manager; | ||
|
||
class AuthManager extends Manager { | ||
|
||
/** | ||
* Create a new driver instance. | ||
* | ||
* @param string $driver | ||
* @return mixed | ||
*/ | ||
protected function createDriver($driver) | ||
{ | ||
$guard = parent::createDriver($driver); | ||
|
||
// When using the remember me functionality of the authentication services we | ||
// will need to be set the encryption isntance of the guard, which allows | ||
// secure, encrypted cookie values to get generated for those cookies. | ||
$guard->setCookieJar($this->app['cookie']); | ||
|
||
$guard->setDispatcher($this->app['events']); | ||
|
||
return $guard; | ||
} | ||
|
||
/** | ||
* Create an instance of the database driver. | ||
* | ||
* @return \Illuminate\Auth\Guard | ||
*/ | ||
protected function createDatabaseDriver() | ||
{ | ||
$provider = $this->createDatabaseProvider(); | ||
|
||
return new Guard($provider, $this->app['session']); | ||
} | ||
|
||
/** | ||
* Create an instance of the database user provider. | ||
* | ||
* @return \Illuminate\Auth\DatabaseUserProvider | ||
*/ | ||
protected function createDatabaseProvider() | ||
{ | ||
$connection = $this->app['db']->connection(); | ||
|
||
// When using the basic database user provider, we need to inject the table we | ||
// want to use, since this is not an Eloquent model we will have no way to | ||
// know without telling the provider, so we'll inject the config value. | ||
$table = $this->app['config']['auth.table']; | ||
|
||
return new DatabaseUserProvider($connection, $this->app['hash'], $table); | ||
} | ||
|
||
/** | ||
* Create an instance of the Eloquent driver. | ||
* | ||
* @return \Illuminate\Auth\Guard | ||
*/ | ||
public function createEloquentDriver() | ||
{ | ||
$provider = $this->createEloquentProvider(); | ||
|
||
return new Guard($provider, $this->app['session']); | ||
} | ||
|
||
/** | ||
* Create an instance of the Eloquent user provider. | ||
* | ||
* @return \Illuminate\Auth\EloquentUserProvider | ||
*/ | ||
protected function createEloquentProvider() | ||
{ | ||
$model = $this->app['config']['auth.model']; | ||
|
||
return new EloquentUserProvider($this->app['hash'], $model); | ||
} | ||
|
||
/** | ||
* Get the default authentication driver name. | ||
* | ||
* @return string | ||
*/ | ||
protected function getDefaultDriver() | ||
{ | ||
return $this->app['config']['auth.driver']; | ||
} | ||
|
||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update PHPDocs for IDE support. #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Update PHPDocs for IDE support. #72
Changes from 1 commit
22f26ff
17f102d
7a97504
e9c98dc
ee34f0c
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.