PHP Class Flarum\Forum\AuthenticationResponseFactory

Datei anzeigen Open project: flarum/core Class Usage Examples

Protected Properties

Property Type Description
$authenticator Flarum\Http\SessionAuthenticator
$rememberer Flarum\Http\Rememberer

Public Methods

Method Description
__construct ( SessionAuthenticator $authenticator, Rememberer $rememberer ) AuthenticationResponseFactory constructor.
make ( Psr\Http\Message\ServerRequestInterface $request, array $identification, array $suggestions = [] )

Private Methods

Method Description
getPayload ( array $identification, array $suggestions, User $user = null ) : array
getResponse ( array $payload ) : HtmlResponse
sanitizeUsername ( string $username ) : string

Method Details

__construct() public method

AuthenticationResponseFactory constructor.
public __construct ( SessionAuthenticator $authenticator, Rememberer $rememberer )
$authenticator Flarum\Http\SessionAuthenticator
$rememberer Flarum\Http\Rememberer

make() public method

public make ( Psr\Http\Message\ServerRequestInterface $request, array $identification, array $suggestions = [] )
$request Psr\Http\Message\ServerRequestInterface
$identification array
$suggestions array

Property Details

$authenticator protected_oe property

protected SessionAuthenticator,Flarum\Http $authenticator
return Flarum\Http\SessionAuthenticator

$rememberer protected_oe property

protected Rememberer,Flarum\Http $rememberer
return Flarum\Http\Rememberer