Skip to content

Commit

Permalink
Fix minor CS violation
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Nov 3, 2024
1 parent 8b731ec commit fc224fd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/PhpSessionPersistence.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@
use const PHP_SESSION_ACTIVE;

/**
* Session persistence using ext-session.
*
* Adapts ext-session to work with PSR-7 by disabling its auto-cookie creation
* (`use_cookies => false`), while simultaneously requiring cookies for session
* handling (`use_only_cookies => true`). The implementation pulls cookies
* manually from the request, and injects a `Set-Cookie` header into the
* response.
*
* Session identifiers are generated using random_bytes (and casting to hex).
* During persistence, if the session regeneration flag is true, a new session
* identifier is created, and the session re-started.
*
* @psalm-type SessionConfig = array{
* persistence?: array{
* ext?: array{
Expand All @@ -45,18 +57,6 @@
* cookie_httponly?: bool,
* cookie_samesite?: string,
* }
*
* Session persistence using ext-session.
*
* Adapts ext-session to work with PSR-7 by disabling its auto-cookie creation
* (`use_cookies => false`), while simultaneously requiring cookies for session
* handling (`use_only_cookies => true`). The implementation pulls cookies
* manually from the request, and injects a `Set-Cookie` header into the
* response.
*
* Session identifiers are generated using random_bytes (and casting to hex).
* During persistence, if the session regeneration flag is true, a new session
* identifier is created, and the session re-started.
*/
class PhpSessionPersistence implements InitializePersistenceIdInterface, SessionPersistenceInterface
{
Expand Down

0 comments on commit fc224fd

Please sign in to comment.