Method | Description | |
---|---|---|
before ( |
Middleware function to check whether a user is logged on. | |
connect ( Silex\Application $app ) |
Method | Description | |
---|---|---|
login ( ) : |
Returns the Login object. | |
password ( ) : |
Returns the Password object. | |
render ( $template, array $context = [], array $globals = [] ) | ||
setAuthenticationCookie ( |
Set the authentication cookie in the response. |
Method | Description | |
---|---|---|
checkFirstUser ( Silex\Application $app, mixed $route ) : null | true | |
Check and handle first user set up. | |
getRoutePermission ( string $route ) : string | Temporary hack to get the permission name associated with the route. |
public before ( |
||
$request | The Symfony Request | |
$app | Silex\Application | The application/container |
$roleRoute | string | An overriding value for the route name in permission checks |
return | null | |
protected login ( ) : |
||
return |
protected password ( ) : |
||
return |
protected setAuthenticationCookie ( |
||
$request | ||
$response | ||
$token | string | |
return |