Méthode | Description | |
---|---|---|
__construct ( null | string $name = null ) | Constructor. Defines de session name. | |
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | Execute the middleware. | |
id ( string $id ) : self | Configure the session id. | |
name ( string $name ) : self | Configure the session name. |
public __construct ( null | string $name = null ) | ||
$name | null | string |
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | ||
$request | Psr\Http\Message\ServerRequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$next | callable | |
Résultat | Psr\Http\Message\ResponseInterface |