All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Add support for PHP 8.4
- Add support for PHP 8.3
- Add support for psr/http-message 2.x
- Upgrade tests to PHPUnit 11
- Drop support for PHP 8.0 and 8.1
- Add
has
method toSessionInterface
#30 #29 - Add PHP 8.2 to build pipeline
- Update docs
- Require PHP 8.0+
- Make session settings "immutable".
- Move all session settings to the
PhpSession
constructor. - Provide interfaces for each concern (management and session data).
- Change
SessionInterface
to handle session data operations only, e.g.get
,set
. - Rename session method
replace
tosetValues
. - Rename session method
remove
todelete
. - Calling the session
save
method is now optional. - Rename class
Odan\Session\Middleware\SessionMiddleware
toOdan\Session\Middleware\SessionStartMiddleware
.
- Add
SessionManagerInterface
to handle session operations, such asstart
,save
,destroy
,getName
, etc. - Add
default
parameter to sessionget
method.
- Remove session method
setOptions
andgetOptions
. Pass all settings intoPhpSession
constructor instead. - Remove session method
setCookieParams
andgetCookieParams
. The cookie parameters must be defined in the settings and will set in the sessionstart
method. - Remove session
setName
method. Use thename
setting instead. - Remove session
setId
method. Use the optionalid
setting instead. - Remove session
count
method. - Remove
SessionAwareInterface
in favor of dependency injection.